]> git.lyx.org Git - features.git/commitdiff
Fix crash with InsetHFill. The inset position was not cached in the CoordCache.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 24 Nov 2007 07:47:01 +0000 (07:47 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 24 Nov 2007 07:47:01 +0000 (07:47 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21758 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.cpp

index 9a63d53b8ea7161b0498df60a04851bca67ab448..370413e0c3d73e15ef53431ec21e089730272eb2 100644 (file)
@@ -773,6 +773,8 @@ void RowPainter::paintText()
                }
 
                if (par_.isHfill(pos)) {
+                       Inset const * inset = par_.getInset(pos);
+                       pi_.base.bv->coordCache().insets().add(inset, int(x_), yo_);
                        paintHfill(pos, body_pos);
                        ++vpos;