[qet] [2463] bugfix: the enum 'ALL' was never handled |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2463
Author: blacksun
Date: 2013-08-26 00:28:06 +0200 (Mon, 26 Aug 2013)
Log Message:
-----------
bugfix: the enum 'ALL' was never handled
Modified Paths:
--------------
trunk/sources/diagramcontent.cpp
Modified: trunk/sources/diagramcontent.cpp
===================================================================
--- trunk/sources/diagramcontent.cpp 2013-08-25 21:48:12 UTC (rev 2462)
+++ trunk/sources/diagramcontent.cpp 2013-08-25 22:28:06 UTC (rev 2463)
@@ -107,6 +107,13 @@
if (filter == ConductorsToMove) foreach(Conductor *conductor, conductorsToMove) { if (conductor -> isSelected()) ++ count; }
if (filter == ConductorsToUpdate) foreach(Conductor *conductor, conductorsToUpdate) { if (conductor -> isSelected()) ++ count; }
if (filter == OtherConductors) foreach(Conductor *conductor, otherConductors) { if (conductor -> isSelected()) ++ count; }
+ } else if (filter == All) {
+ count += elements.count();
+ count += textFields.count();
+ count += images.count();
+ count += conductorsToMove.count();
+ count += conductorsToUpdate.count();
+ count += otherConductors.count();
} else {
if (filter == Elements) count += elements.count();
if (filter == TextFields) count += textFields.count();