make insetgraphics cache their position

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8134 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-11-25 08:50:07 +00:00
parent 45ca1c4e02
commit 6b8618d6a1
2 changed files with 5 additions and 0 deletions

View 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>

View 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);
}