From 967d3e3cd6ef0c415fa29a6aab279f337611c9b8 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 20 Mar 2006 14:10:31 +0000 Subject: [PATCH] QBranches::on_colorPB_clicked() one-line bug fix: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/QBranches.C b/src/frontends/qt4/QBranches.C index f843e86390..43a132b6da 100644 --- a/src/frontends/qt4/QBranches.C +++ b/src/frontends/qt4/QBranches.C @@ -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"); string current_branch = fromqstr(sel_branch); Branch * branch = branchlist_.find(current_branch);