]> git.lyx.org Git - lyx.git/commitdiff
Hopefully temporary fix for the Tabular crash problem. Of course, this is not the...
authorAbdelrazak Younes <younes@lyx.org>
Thu, 19 Oct 2006 16:02:12 +0000 (16:02 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 19 Oct 2006 16:02:12 +0000 (16:02 +0000)
* BufferView::updateMetrics(): add a big FIXME and don't clear out the coord_cache_.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15375 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.C

index cc2afe0f325832cb0cbbbeacb80a514623a338d9..2d1846ab94ee4f821510b53de6292023dee377cc 100644 (file)
@@ -1261,8 +1261,15 @@ ViewMetricsInfo const & BufferView::viewMetricsInfo()
 
 void BufferView::updateMetrics(bool singlepar)
 {
+       // FIXME (Abdel 19/10/2006):
+       // There's something fishy in tabular. The coord_cache_ is not
+       // correctly reconstructed when a character is trying to be inserted.
+       // Not clearing out the coord_cache_ fixes the crash but I don't know
+       // what side effect this could have on other insets.
+       //
        // Remove old position cache
-       coord_cache_.clear();
+       // coord_cache_.clear();
+
        LyXText & buftext = buffer_->text();
        lyx::pit_type size = int(buftext.paragraphs().size());