Enable the InsetInclude dialog to be opened.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8235 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-12-12 10:20:17 +00:00
parent 890bba60e4
commit f02dbbd049
2 changed files with 8 additions and 0 deletions

View 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> 2003-12-12 Angus Leeming <leeming@lyx.org>
* mailinset.C (print_mailer_error): tidy up the output. * mailinset.C (print_mailer_error): tidy up the output.

View File

@ -548,6 +548,9 @@ void InsetInclude::metrics(MetricsInfo & mi, Dimension & dim) const
void InsetInclude::draw(PainterInfo & pi, int x, int y) const void InsetInclude::draw(PainterInfo & pi, int x, int y) const
{ {
xo_ = x;
yo_ = y;
if (!RenderPreview::activated() || !preview_->previewReady()) { if (!RenderPreview::activated() || !preview_->previewReady()) {
button_.draw(pi, x + button_.box().x1, y); button_.draw(pi, x + button_.box().x1, y);
return; return;