]> git.lyx.org Git - features.git/commitdiff
Enable the InsetInclude dialog to be opened.
authorAngus Leeming <leeming@lyx.org>
Fri, 12 Dec 2003 10:20:17 +0000 (10:20 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 12 Dec 2003 10:20:17 +0000 (10:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8235 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetinclude.C

index c9fcb305a841d01597dfadbdf6ecad83b3d35cda..925466afc8a4d56c8f6dc4ca10b25995ae35c95b 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-12  Angus Leeming  <leeming@lyx.org>
+
+       * insetinclude.C (draw): cache x,y and so enable the
+       dialog to be opened.
+
 2003-12-12  Angus Leeming  <leeming@lyx.org>
 
        * mailinset.C (print_mailer_error): tidy up the output.
index 25b87afca720178ba417e7d608371610758c327f..2b5d00b857a70a1277bb077e655bb8f5505d15a9 100644 (file)
@@ -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;