Skip to content

Commit 417ee6e

Browse files
authored
Merge pull request The-OpenROAD-Project#5401 from gadfort/gui-hide-fix
gui: fix exit logic on hide
2 parents 91e3e21 + 73855fd commit 417ee6e

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/gui/src/gui.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,19 @@ int startGui(int& argc,
14151415
// rethow exception, if one happened after cleanup of main_window
14161416
exception.rethrow();
14171417

1418-
if (interactive && (!gui->isContinueAfterClose() || exit_requested)) {
1418+
debugPrint(open_road->getLogger(),
1419+
utl::GUI,
1420+
"init",
1421+
1,
1422+
"Exit state: interactive ({}), isContinueAfterClose ({}), "
1423+
"exit_requested ({}), exit_code ({})",
1424+
interactive,
1425+
gui->isContinueAfterClose(),
1426+
exit_requested,
1427+
exit_code);
1428+
1429+
const bool do_exit = !gui->isContinueAfterClose() && exit_requested;
1430+
if (interactive && do_exit) {
14191431
// if exiting, go ahead and exit with gui return code.
14201432
exit(exit_code);
14211433
}

src/pdn/src/straps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ void RepairChannelStraps::determineParameters(
16611661
utl::PDN,
16621662
"Channel",
16631663
2,
1664-
"Failed on channel width check, group {:.4f} and channel {.4f}.",
1664+
"Failed on channel width check, group {:.4f} and channel {:.4f}.",
16651665
group_width / static_cast<double>(getBlock()->getDbUnitsPerMicron()),
16661666
area_width / static_cast<double>(getBlock()->getDbUnitsPerMicron()));
16671667
return false;

0 commit comments

Comments
 (0)