]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Painter.C
another compile fix from herbert
[lyx.git] / src / frontends / Painter.C
index 06544896d8161e2d1ee89f57fdc8e1386c556aec..ec555e96242bc9eda6fa39f2d7656f3aeb06d724 100644 (file)
@@ -1,6 +1,7 @@
 /**
  * \file Painter.C
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author unknown
  * \author John Levon 
@@ -68,15 +69,15 @@ Painter & Painter::rectText(int x, int baseline,
 
        font_metrics::rectText(str, font, width, ascent, descent);
  
-       if (frame != LColor::none) {
-               rectangle(x, baseline - ascent, width, ascent + descent, frame);
-       }
        if (back != LColor::none) {
                fillRectangle(x + 1, baseline - ascent + 1, width - 1, 
                              ascent + descent - 1, back);
        }
  
+       if (frame != LColor::none) {
+               rectangle(x, baseline - ascent, width, ascent + descent, frame);
+       }
        text(x + 3, baseline, str, font);
        return *this;
 }