]> git.lyx.org Git - features.git/commitdiff
Improve painting debug info.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 1 Sep 2007 09:33:57 +0000 (09:33 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 1 Sep 2007 09:33:57 +0000 (09:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19970 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp
src/TextMetrics.cpp

index 2ae81ea93f0131b5966f1a8826297c66948c8342..21666b2864cc2ced0fd7498f3625df8a889e338b 100644 (file)
@@ -1554,12 +1554,14 @@ void BufferView::draw(frontend::Painter & pain)
 
        int yy = metrics_info_.y1;
        // draw contents
+       LYXERR(Debug::PAINTING) << "\t\t*** START DRAWING ***" << endl;
        for (pit_type pit = metrics_info_.p1; pit <= metrics_info_.p2; ++pit) {
                ParagraphMetrics const & pm = tm.parMetrics(pit);
                yy += pm.ascent();
                tm.drawParagraph(pi, pit, 0, yy);
                yy += pm.descent();
        }
+       LYXERR(Debug::PAINTING) << "\n\t\t*** END DRAWING  ***" << endl;
 
        // and grey out above (should not happen later)
 //     lyxerr << "par ascent: " << text.getPar(metrics_info_.p1).ascent() << endl;
index d9b3bb8cbd70733508a0c6def22e32908eae8857..b64ff87b4bf92bf75f03a2af4a1475fd06d4f557 100644 (file)
@@ -1037,8 +1037,8 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type pit, int x, int y) co
                // 12 lines lower):
                if (lyxerr.debugging(Debug::PAINTING)) {
                        if (text_->isMainText(bv_->buffer()))
-                               LYXERR(Debug::PAINTING) << "\n{" <<
-                               pi.full_repaint << row_has_changed << "}  ";
+                               LYXERR(Debug::PAINTING) << "{" <<
+                               pi.full_repaint << row_has_changed << "}\n";
                        else
                                LYXERR(Debug::PAINTING) << "[" <<
                                pi.full_repaint << row_has_changed << "]";