From 1cdc0913cb2706dcc0de9e710e0ab6c3cb2e93da Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Thu, 19 Sep 2013 16:33:02 +0000 Subject: [PATCH] Fix regression for text and image git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2547 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/diagramcontent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/diagramcontent.cpp b/sources/diagramcontent.cpp index 75de91323..70fd1767f 100644 --- a/sources/diagramcontent.cpp +++ b/sources/diagramcontent.cpp @@ -116,8 +116,8 @@ int DiagramContent::count(int filter) const { 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();