bug fix, diagramContent: fix the bug about & and ==

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2558 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2013-09-26 09:27:55 +00:00
parent 0890de4505
commit d314ed68c6
3 changed files with 18 additions and 24 deletions

View File

@@ -1533,7 +1533,7 @@ void QETDiagramEditor::slot_addImage() {
void QETDiagramEditor::slot_editSelection() {
if (DiagramView *dv = currentDiagram()) {
DiagramContent dc = dv -> diagram() -> selectedContent();
if (dc.count() != 1) return;
if (dc.count(DiagramContent::SelectedOnly | DiagramContent::All) != 1) return;
if (dc.count(DiagramContent::Elements)) {
findSelectedElementInPanel();