From bf1e9480ed367de990e4156d11ff766dd48ca6ad Mon Sep 17 00:00:00 2001
From: MaxED <j.maxed@gmail.com>
Date: Wed, 29 Aug 2012 10:39:59 +0000
Subject: [PATCH] Tiny fixes in Color Picker plugin

---
 Source/Plugins/ColorPicker/Controls/ColorPickerControl.cs     | 4 ++--
 .../ColorPicker/Controls/ColorPickerControl.designer.cs       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Source/Plugins/ColorPicker/Controls/ColorPickerControl.cs b/Source/Plugins/ColorPicker/Controls/ColorPickerControl.cs
index 599608fbb..7750bb883 100644
--- a/Source/Plugins/ColorPicker/Controls/ColorPickerControl.cs
+++ b/Source/Plugins/ColorPicker/Controls/ColorPickerControl.cs
@@ -90,9 +90,9 @@ namespace CodeImp.DoomBuilder.ColorPicker.Controls {
                     string r = RGB.Red.ToString("X");
                     if (r.Length == 1) r = "0" + r;
                     string g = RGB.Green.ToString("X");
-                    if (g.Length == 1) r = "0" + g;
+                    if (g.Length == 1) g = "0" + g;
                     string b = RGB.Blue.ToString("X");
-                    if (b.Length == 1) r = "0" + b;
+                    if (b.Length == 1) b = "0" + b;
 
                     isInUpdate = true;
                     tbFloatVals.Text = r + g + b;
diff --git a/Source/Plugins/ColorPicker/Controls/ColorPickerControl.designer.cs b/Source/Plugins/ColorPicker/Controls/ColorPickerControl.designer.cs
index 7e6e29cb3..d31a10136 100644
--- a/Source/Plugins/ColorPicker/Controls/ColorPickerControl.designer.cs
+++ b/Source/Plugins/ColorPicker/Controls/ColorPickerControl.designer.cs
@@ -159,9 +159,9 @@
             // 
             // tbFloatVals
             // 
-            this.tbFloatVals.Location = new System.Drawing.Point(218, 115);
+            this.tbFloatVals.Location = new System.Drawing.Point(214, 115);
             this.tbFloatVals.Name = "tbFloatVals";
-            this.tbFloatVals.Size = new System.Drawing.Size(91, 20);
+            this.tbFloatVals.Size = new System.Drawing.Size(95, 20);
             this.tbFloatVals.TabIndex = 63;
             this.tbFloatVals.Text = "1.01 0.55 0.33";
             this.tbFloatVals.TextChanged += new System.EventHandler(this.tbFloatVals_TextChanged);
-- 
GitLab