[qet] [2547] Fix regression for text and image

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


Revision: 2547
Author:   scorpio810
Date:     2013-09-19 18:33:02 +0200 (Thu, 19 Sep 2013)
Log Message:
-----------
Fix regression for text and image

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

Modified: trunk/sources/diagramcontent.cpp
===================================================================
--- trunk/sources/diagramcontent.cpp	2013-09-19 16:16:25 UTC (rev 2546)
+++ trunk/sources/diagramcontent.cpp	2013-09-19 16:33:02 UTC (rev 2547)
@@ -116,8 +116,8 @@
 		count += otherConductors.count();
 	} else {
 		if (filter & Elements)           count += elements.count();
-		if (filter == TextFields)         count += textFields.count();
-		if (filter == Images)			  count += images.count();
+		if (filter & TextFields)         count += textFields.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/