[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kspread/ui
From:       Stefan Nikolaus <nikolaus.kde () googlemail ! com>
Date:       2010-07-06 13:56:10
Message-ID: 20100706135610.26058AC85D () svn ! kde ! org
[Download RAW message or body]

SVN commit 1146732 by nikolaus:

FIX	Fix the enabling of the alignment actions.


 M  +3 -3      CellToolBase_p.cpp  


--- trunk/koffice/kspread/ui/CellToolBase_p.cpp #1146731:1146732
@@ -130,9 +130,9 @@
     ACTION_EXEC("currency", setChecked(ft == Format::Money));
 
     const bool showFormulas = q->selection()->activeSheet()->getShowFormula();
-    q->action("alignLeft")->setEnabled(showFormulas);
-    q->action("alignCenter")->setEnabled(showFormulas);
-    q->action("alignRight")->setEnabled(showFormulas);
+    q->action("alignLeft")->setEnabled(!showFormulas);
+    q->action("alignCenter")->setEnabled(!showFormulas);
+    q->action("alignRight")->setEnabled(!showFormulas);
 
     if (!q->selection()->activeSheet()->isProtected() || style.notProtected()) {
         q->action("clearComment")->setEnabled(!cell.comment().isEmpty());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic