From 8fa99749c928503492f51eedde4bf63c8197dba5 Mon Sep 17 00:00:00 2001 From: pal1000 Date: Wed, 20 Nov 2013 17:43:26 +0200 Subject: [PATCH] Indentation fix for CtrlMemView.cpp --- Windows/Debugger/CtrlMemView.cpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Windows/Debugger/CtrlMemView.cpp b/Windows/Debugger/CtrlMemView.cpp index 26335317f8..e1796b292c 100644 --- a/Windows/Debugger/CtrlMemView.cpp +++ b/Windows/Debugger/CtrlMemView.cpp @@ -434,22 +434,20 @@ void CtrlMemView::onMouseUp(WPARAM wParam, LPARAM lParam, int button) switch (TrackPopupMenuEx(menu,TPM_RIGHTBUTTON|TPM_RETURNCMD,pt.x,pt.y,wnd,0)) { case ID_MEMVIEW_DUMP: - - if (!Core_IsStepping()) // If emulator isn't paused { - Core_EnableStepping(true); //force paused state - DumpMemoryWindow dump(wnd,debugger); + DumpMemoryWindow dump(wnd,debugger); + bool priorDumpWasStepping=Core_IsStepping(); + if (!priorDumpWasStepping) // If emulator isn't paused + { + Core_EnableStepping(true); //force paused state + } dump.exec(); - Core_EnableStepping(false); //Resume emulation automatically + if (!priorDumpWasStepping) // If emulator wasn't paused before dumping + { + Core_EnableStepping(false); //Resume emulation automatically + } break; - } - else - { - DumpMemoryWindow dump(wnd,debugger); - dump.exec(); - break; - } - + case ID_MEMVIEW_COPYVALUE_8: { char temp[24];