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;