QTfrontend/ui/widget/SquareLabel.cpp
changeset 6616 f77bb02b669f
parent 6428 2d2b5e3c59a7
child 6700 e04da46ee43c
--- a/QTfrontend/ui/widget/SquareLabel.cpp	Mon Jan 30 23:20:28 2012 +0100
+++ b/QTfrontend/ui/widget/SquareLabel.cpp	Mon Jan 30 17:32:18 2012 -0500
@@ -33,10 +33,13 @@
 
     QPainter painter(this);
     int pixsize;
-    if (width() > height()) {
+    if (width() > height())
+    {
         pixsize = height();
         painter.translate((width() - pixsize) / 2, 0);
-    } else {
+    }
+    else
+    {
         pixsize = width();
         painter.translate(0, (height() - pixsize) / 2);
     }