Skip to content

Commit

Permalink
Fix Select all
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Jun 22, 2023
1 parent 472d66c commit 99e314d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qucs/qucs_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,9 @@ void QucsApp::slotSelectAll()
((TextDoc*)Doc)->selectAll();
}
else {
((Schematic*)Doc)->selectElements(INT_MIN, INT_MIN, INT_MAX, INT_MAX, true, false);
int xmin, ymin, xmax, ymax;
((Schematic*)Doc)->sizeOfAll(xmin, ymin, xmax, ymax);
((Schematic*)Doc)->selectElements(xmin, ymin, xmax, ymax, true, false);
((Schematic*)Doc)->viewport()->update();
view->drawn = false;
}
Expand Down

0 comments on commit 99e314d

Please sign in to comment.