Index: trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java	(revision 795)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java	(revision 796)
@@ -189,5 +189,5 @@
 				Dimension d = p.getSize();
 				Dimension b = buttons.getPreferredSize();
-				int width = d.width/2-10-b.width;
+				int width = (d.width-10-b.width)/2;
 				left.setBounds(new Rectangle(0,0,width,d.height));
 				right.setBounds(new Rectangle(width+10+b.width,0,width,d.height));
