[qet] [2550] Fix regression in context menu edit image

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2550
Author:   scorpio810
Date:     2013-09-19 23:53:28 +0200 (Thu, 19 Sep 2013)
Log Message:
-----------
Fix regression in context menu edit image

Modified Paths:
--------------
    trunk/sources/diagramcontent.cpp

Modified: trunk/sources/diagramcontent.cpp
===================================================================
--- trunk/sources/diagramcontent.cpp	2013-09-19 19:34:26 UTC (rev 2549)
+++ trunk/sources/diagramcontent.cpp	2013-09-19 21:53:28 UTC (rev 2550)
@@ -103,7 +103,7 @@
 	if (filter == SelectedOnly) {
 		if (filter == Elements)           foreach(Element *element,     elements)                  { if (element   -> isSelected()) ++ count; }
 		if (filter == TextFields)         foreach(DiagramTextItem *dti, textFields)                { if (dti       -> isSelected()) ++ count; }
-		if (filter == Images)			  foreach(DiagramImageItem *dii, images)				   { if (dii	   -> isSelected()) ++ count; }
+		if (filter == Images)             foreach(DiagramImageItem *dii, images)                   { if (dii       -> isSelected()) ++ count; }
 		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; }
@@ -117,7 +117,7 @@
 	} else {
 		if (filter & Elements)           count += elements.count();
 		if (filter & TextFields)         count += textFields.count();
-		if (filter & Images)             count += images.count();
+		if (filter == Images)            count += images.count();
 		if (filter & ConductorsToMove)   count += conductorsToMove.count();
 		if (filter & ConductorsToUpdate) count += conductorsToUpdate.count();
 		if (filter & OtherConductors)    count += otherConductors.count();


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/