From 6b8618d6a16870360abb96446fc128aa182bdd87 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Tue, 25 Nov 2003 08:50:07 +0000 Subject: [PATCH] make insetgraphics cache their position git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8134 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 3 +++ src/insets/insetgraphics.C | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index c46fd2c89e..2070344f58 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,6 @@ +2003-11-24 Alfredo Braunstein + + * insetgraphics.C (draw): cache xo_ & yo_ 2003-11-24 André Pönitz diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 949120d37b..4a025357c9 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -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); }