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();