From 05879ba39f04571c6ced092cc8eb98e295bd4c08 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 20 Dec 2008 01:30:57 +0000 Subject: [PATCH] Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5628 . Instant preview of external material uses scaling from latex settings. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27928 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiExternal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiExternal.cpp b/src/frontends/qt4/GuiExternal.cpp index a32a33c3a5..c4a58ceaf8 100644 --- a/src/frontends/qt4/GuiExternal.cpp +++ b/src/frontends/qt4/GuiExternal.cpp @@ -513,7 +513,8 @@ void GuiExternal::updateContents() displayGB->setChecked(params_.display); displayscaleED->setEnabled(params_.display && !isBufferReadonly()); displayscaleED->setText(QString::number(params_.lyxscale)); - displayGB->setEnabled(lyxrc.display_graphics); + displayGB->setEnabled(lyxrc.display_graphics && + (params_.preview_mode != PREVIEW_INSTANT)); setRotation(*angleED, *originCO, params_.rotationdata); -- 2.39.2