]> git.lyx.org Git - features.git/commitdiff
make insetgraphics cache their position
authorAlfredo Braunstein <abraunst@lyx.org>
Tue, 25 Nov 2003 08:50:07 +0000 (08:50 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Tue, 25 Nov 2003 08:50:07 +0000 (08:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8134 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetgraphics.C

index c46fd2c89e90f5a0cc6cbe0eecd51fd761403a11..2070344f587b47a83824c5544fdc8110c0a23362 100644 (file)
@@ -1,3 +1,6 @@
+2003-11-24  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * insetgraphics.C (draw): cache xo_ & yo_
 
 2003-11-24  André Pönitz  <poenitz@gmx.net>
 
index 949120d37b27956d817edeb0559c1e957ce0348b..4a025357c98d4cc4bec63d749f64de4341e6cff4 100644 (file)
@@ -235,6 +235,8 @@ void InsetGraphics::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetGraphics::draw(PainterInfo & pi, int x, int y) const
 {
+       xo_ = x;
+       yo_ = y;
        graphic_->draw(pi, x, y);
 }