]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranches.cpp
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiBranches.cpp
index 46966c9fbbda5ef1b24c04f1ba79682550f0d854..aaeab67410c2e53e2e6bfd02f76cf8d43a9dac00 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "GuiBranches.h"
 
-#include "ControlDocument.h"
+#include "ColorCache.h"
 #include "GuiApplication.h"
 #include "Validator.h"
 #include "qt_helpers.h"
@@ -69,9 +69,7 @@ void GuiBranches::updateView()
 
                QString const bname = toqstr(it->getBranch());
                newItem->setText(0, bname);
-
-               QString const sel = it->getSelected() ? qt_("Yes") : qt_("No");
-               newItem->setText(1, sel);
+               newItem->setText(1, it->getSelected() ? qt_("Yes") : qt_("No"));
 
                QColor const itemcolor = rgb2qcolor(it->getColor());
                if (itemcolor.isValid()) {
@@ -170,8 +168,7 @@ void GuiBranches::toggleColor(QTreeWidgetItem * item)
                return;
 
        docstring current_branch = qstring_to_ucs4(sel_branch);
-       Branch * branch =
-               branchlist_.find(current_branch);
+       Branch * branch = branchlist_.find(current_branch);
        if (!branch)
                return;