From f02dbbd049287188d942a3ca95924411246798aa Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 12 Dec 2003 10:20:17 +0000 Subject: [PATCH] Enable the InsetInclude dialog to be opened. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8235 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insetinclude.C | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index c9fcb305a8..925466afc8 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2003-12-12 Angus Leeming + + * insetinclude.C (draw): cache x,y and so enable the + dialog to be opened. + 2003-12-12 Angus Leeming * mailinset.C (print_mailer_error): tidy up the output. diff --git a/src/insets/insetinclude.C b/src/insets/insetinclude.C index 25b87afca7..2b5d00b857 100644 --- a/src/insets/insetinclude.C +++ b/src/insets/insetinclude.C @@ -548,6 +548,9 @@ void InsetInclude::metrics(MetricsInfo & mi, Dimension & dim) const void InsetInclude::draw(PainterInfo & pi, int x, int y) const { + xo_ = x; + yo_ = y; + if (!RenderPreview::activated() || !preview_->previewReady()) { button_.draw(pi, x + button_.box().x1, y); return; -- 2.39.2