]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.C
- Link against qt-mt333.lib which is what the current qt3 cvs produces
[lyx.git] / src / rowpainter.C
index 3f9994d10110da8f5a8915fba9c1dcd24adaa962..7a6ec164f962514334b432ff9d391a2b15a82629 100644 (file)
@@ -515,7 +515,9 @@ void RowPainter::paintFirst()
                                        } else {
                                                spacing_val = buffer.params().spacing().getValue();
                                        }
-#warning Look is this correct?                                 
+#ifdef WITH_WARNINGS
+#warning Look is this correct?
+#endif
                                        int const labeladdon = int(font_metrics::maxHeight(font) * layout->spacing.getValue() * spacing_val);
 
                                        int const maxdesc = int(font_metrics::maxDescent(font) * layout->spacing.getValue() * spacing_val)
@@ -662,7 +664,7 @@ void RowPainter::paintText()
                // if we reach the end of a struck out range, paint it
                // we also don't paint across things like tables
                if (running_strikeout && (highly_editable_inset || !is_struckout)) {
-                       // FIXME this should take real text height into account, not 
+                       // FIXME this should take real text height into account, not
                        // the whole row including padding whitespace
                        //int const middle = yo_ + (- row_.ascent() + row_.top_of_text()) / 2;
                        int const middle = yo_ - row_.ascent() / 2;
@@ -733,7 +735,7 @@ void paintPar
        static NullPainter nop;
        static PainterInfo nullpi(pi.base.bv, nop);
        int const ww = pi.base.bv->workHeight();
-       
+
        Paragraph & par = text.paragraphs()[pit];
 
        RowList::iterator const rb = par.rows().begin();
@@ -746,7 +748,7 @@ void paintPar
                bool const inside = (y + rit->descent() >= 0
                                       && y - rit->ascent() < ww);
                RowPainter rp(inside ? pi : nullpi, text, pit, *rit, x, y);
-                       
+
                y += rit->descent();
                rp.paintAppendix();
                rp.paintDepthBar();
@@ -783,7 +785,7 @@ void paintText(BufferView const & bv, ViewMetricsInfo const & vi)
                paintPar(pi, *bv.text(), pit, 0, yy);
                yy += text->getPar(pit).descent();
        }
-       
+
 
        // paint one paragraph above and one below
        if (vi.p1 > 0) {