From 58b2cc37ece445a75bd17990fa62aae46e58f86f Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 19 Sep 2013 16:16:25 +0000 Subject: [PATCH] Fix regression in diagramcontent introduced by revision 2459 affecting selection_prop: a dialog describing the selection, thanks Pawel for report bug git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2546 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/diagramcontent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/diagramcontent.cpp b/sources/diagramcontent.cpp index 2f100d6a1..75de91323 100644 --- a/sources/diagramcontent.cpp +++ b/sources/diagramcontent.cpp @@ -115,7 +115,7 @@ int DiagramContent::count(int filter) const { count += conductorsToUpdate.count(); count += otherConductors.count(); } else { - if (filter == Elements) count += elements.count(); + if (filter & Elements) count += elements.count(); if (filter == TextFields) count += textFields.count(); if (filter == Images) count += images.count(); if (filter == ConductorsToMove) count += conductorsToMove.count();