]> git.lyx.org Git - features.git/commitdiff
Size tab now enables and disables correctly depending on the capabilities configured...
authorTommaso Cucinotta <tommaso@lyx.org>
Sun, 31 Jul 2011 18:43:12 +0000 (18:43 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sun, 31 Jul 2011 18:43:12 +0000 (18:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39400 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiExternal.cpp
status.20x

index e71504d27b34d9756d8bf45790aed0ad69c348f2..b3d9e44ec00de963541cba2e01bf39974648b4b7 100644 (file)
@@ -512,21 +512,19 @@ void GuiExternal::updateTemplate()
        TransformIDs::const_iterator tr_begin = transformIds.begin();
        TransformIDs::const_iterator const tr_end = transformIds.end();
 
-       bool found = std::find(tr_begin, tr_end, external::Rotate) != tr_end;
-       rotationGB->setEnabled(found);
+       bool rotate = std::find(tr_begin, tr_end, external::Rotate) != tr_end;
+       rotationGB->setEnabled(rotate);
 
-       found = std::find(tr_begin, tr_end, external::Resize) != tr_end;
-       scaleGB->setEnabled(found);
+       bool resize = std::find(tr_begin, tr_end, external::Resize) != tr_end;
+       scaleGB->setEnabled(resize);
 
-       found = std::find(tr_begin, tr_end, external::Clip) != tr_end;
-       cropGB->setEnabled(found);
+       bool clip = std::find(tr_begin, tr_end, external::Clip) != tr_end;
+       cropGB->setEnabled(clip);
 
-       tab->setTabEnabled(tab->indexOf(sizetab),
-               rotationGB->isEnabled()
-               || scaleGB->isEnabled()
-               || cropGB->isEnabled());
+       sizetab->setEnabled(rotate || resize || clip);
+       tab->setTabEnabled(tab->indexOf(sizetab), rotate || resize || clip);
 
-       found = std::find(tr_begin, tr_end, external::Extra) != tr_end;
+       bool found = std::find(tr_begin, tr_end, external::Extra) != tr_end;
        optionsGB->setEnabled(found);
 
        bool scaled = displayGB->isChecked() && displayGB->isEnabled() &&
index 5664937f775320f89f469035314669662290fac0..943d2cd834d61e82d0999dd21f6cdf0c59b48496 100644 (file)
@@ -55,6 +55,8 @@ What's new
   only the current paragraph, except when complete source is requested
   (bug 7463).
 
+- Size tab now enables and disables correctly depending on the capabilities
+  configured for the current external template (selected via the combo).
 
 * DOCUMENTATION AND LOCALIZATION