Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#4793 from The-OpenROAD-Projec…
Browse files Browse the repository at this point in the history
…t-staging/gui-clock-save

gui: fix problems when saving a CTS clock tree view
  • Loading branch information
maliberty authored Mar 14, 2024
2 parents 41d6ebc + cc7e50e commit f1a4087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/src/clockWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,7 @@ void ClockWidget::saveImage(const std::string& clock_name,
if (height_px.has_value()) {
view_size.setHeight(height_px.value());
}
print_view.scale(1, 1); // mysteriously necessary sometimes
print_view.resize(view_size);
// Ensure the new view is sized correctly by Qt by processing the event
// so fit will work
Expand Down

0 comments on commit f1a4087

Please sign in to comment.