summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-03-08 10:36:25 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-03-08 10:36:25 +0200
commitd68d7a267cc4bbc17a566016591e5ddaec804581 (patch)
treeb1849a6924898a855ae9573d73904c874a4592c4
parentb0b1b7c31b3e8f45e42d9d5f05d2e4f9f06271b7 (diff)
downloadfpGUI-d68d7a267cc4bbc17a566016591e5ddaec804581.tar.xz
Combobox margin fix
When painting the combobox did not take into account that the margin applies to both the left and right side of the combobox.
-rw-r--r--src/gui/fpg_combobox.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/fpg_combobox.pas b/src/gui/fpg_combobox.pas
index 19028530..d0fc01c1 100644
--- a/src/gui/fpg_combobox.pas
+++ b/src/gui/fpg_combobox.pas
@@ -722,7 +722,7 @@ begin
Canvas.SetColor(clWindowBackground);
Canvas.SetTextColor(FTextColor);
r.Left := r.Left + Margin;
- r.Width := r.Width - Margin;
+ r.Width := r.Width - (Margin*2);
end;
Canvas.FillRectangle(r);