]> git.lyx.org Git - lyx.git/commitdiff
QBranches::on_colorPB_clicked() one-line bug fix:
authorAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 14:10:31 +0000 (14:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 14:10:31 +0000 (14:10 +0000)
When you click the "Alter button" on a added branch in "Document Settings/Branches" Dialog, clicking on the palette on the right to select a color won't work (selected color stays black). After selecting a color from the "Basic Colors" or the "Custon colors"
(which works fine), the color selection from the palette will work correctly. The problems lies in that the QColor() constructor produces an invalid color (RGB 0,0,0). "lightskyblue" is now the default color for a branch when you click the alter button.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13429 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QBranches.C

index f843e86390bfdf8fefb9b6a7fe3fd84f8e9f372e..43a132b6da5259dfbd72e0cab9f23f1b4955220c 100644 (file)
@@ -153,7 +153,7 @@ void QBranches::on_colorPB_clicked()
        if (selItem != 0)
                sel_branch = selItem->text(0);
        if (!sel_branch.isEmpty()) {
-               QColor initial;
+               QColor initial("lightskyblue");\r
                string current_branch = fromqstr(sel_branch);
                Branch * branch =
                        branchlist_.find(current_branch);