diff options
author | Vaclav Vancura <vaclav@vancura.org> | 2014-04-01 18:24:16 +0400 |
---|---|---|
committer | Vaclav Vancura <vaclav@vancura.org> | 2014-04-01 18:24:16 +0400 |
commit | d47daed6c70a23b51a75ff10b45b7c0e7393dd49 (patch) | |
tree | ab3accb2e27dd66d16398544478c48e4d06aaae1 /main/src/addins/MonoDevelop.DesignerSupport | |
parent | 5ac4669142c8e79e5bd2278db1c934ccfe5e34cc (diff) |
[Icons] Reverting some wrong calculations, sorry
Diffstat (limited to 'main/src/addins/MonoDevelop.DesignerSupport')
-rw-r--r-- | main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/ToolboxWidget.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/ToolboxWidget.cs b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/ToolboxWidget.cs index 97f178bf12..5124b13110 100644 --- a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/ToolboxWidget.cs +++ b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/ToolboxWidget.cs @@ -269,7 +269,7 @@ namespace MonoDevelop.DesignerSupport.Toolbox int width, height; cr.SetSourceColor (CategoryLabelColor); layout.GetPixelSize (out width, out height); - cr.MoveTo (xpos + CategoryLeftPadding, (double)(ypos + Math.Round ((itemDimension.Height - height) / 2))); + cr.MoveTo (xpos + CategoryLeftPadding, ypos + (itemDimension.Height - height) / 2); Pango.CairoHelper.ShowLayout (cr, headerLayout); var img = category.IsExpanded ? discloseUp : discloseDown; @@ -290,7 +290,7 @@ namespace MonoDevelop.DesignerSupport.Toolbox int width, height; layout.GetPixelSize (out width, out height); cr.SetSourceColor (Style.Text (item != this.SelectedItem ? StateType.Normal : StateType.Selected).ToCairoColor ()); - cr.MoveTo (xpos + ItemLeftPadding + IconSize.Width + ItemIconTextItemSpacing, (double)(ypos + Math.Round ((itemDimension.Height - height) / 2))); + cr.MoveTo (xpos + ItemLeftPadding + IconSize.Width + ItemIconTextItemSpacing, ypos + (itemDimension.Height - height) / 2); Pango.CairoHelper.ShowLayout (cr, layout); } else { cr.DrawImage (this, item.Icon, xpos + Math.Round ((itemDimension.Width - item.Icon.Width) / 2), ypos + Math.Round ((itemDimension.Height - item.Icon.Height) / 2)); |