bugfix: the enum 'ALL' was never handled

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2463 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-08-25 22:28:06 +00:00
parent 06a5505162
commit de6d7b09be

View File

@@ -107,6 +107,13 @@ int DiagramContent::count(int filter) const {
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();