]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Next step in fixing problems noted by Vincent: Remove magic boolean from
[lyx.git] / src / TextMetrics.cpp
index 675f8ee11a00ff9ae11494afa3e3f3b08c4e1580..2a87cf996b103e0c61353d7e337a9e48b4ccd4f9 100644 (file)
@@ -134,8 +134,6 @@ TextMetrics::TextMetrics(BufferView * bv, Text * text)
        dim_.wid = max_width_;
        dim_.asc = 10;
        dim_.des = 10;
-
-       //text_->updateBuffer(bv->buffer());
 }
 
 
@@ -401,6 +399,9 @@ bool TextMetrics::redoParagraph(pit_type const pit)
                LYXERR(Debug::INFO, "MacroContext not initialised!"
                        << " Going through the buffer again and hope"
                        << " the context is better then.");
+               // FIXME audit updateBuffer calls
+               // This should not be here, but it is not clear yet where else it
+               // should be.
                bv_->buffer().updateBuffer();
                parPos = text_->macrocontextPosition();
                LASSERT(!parPos.empty(), /**/);