aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--debugger/QT/SkDebuggerGUI.cpp3
-rw-r--r--debugger/QT/SkDebuggerGUI.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index 12c3bdc9c3..1cca0ba953 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -128,7 +128,7 @@ void SkDebuggerGUI::actionDelete() {
int currentRow = fListWidget.currentRow();
// NOTE(chudy): Forces a redraw up to current selected command.
fCanvasWidget.toggleCommand(currentRow);
- fCanvasWidget.drawTo(currentRow);
+ fCanvasWidget.drawTo(fPausedRow);
}
void SkDebuggerGUI::actionInspector() {
@@ -222,6 +222,7 @@ void SkDebuggerGUI::pauseDrawing(bool isPaused) {
// Qt uses 0 for unchecked, 1 for partially enabled and 2 for checked.
if (isPaused) {
fPause = true;
+ fPausedRow = fListWidget.currentRow();
} else {
fPause = false;
fCanvasWidget.drawTo(fListWidget.currentRow());
diff --git a/debugger/QT/SkDebuggerGUI.h b/debugger/QT/SkDebuggerGUI.h
index e1c9bba52d..11eb856fd4 100644
--- a/debugger/QT/SkDebuggerGUI.h
+++ b/debugger/QT/SkDebuggerGUI.h
@@ -200,6 +200,7 @@ private:
bool fBreakpointsActivated;
bool fPause;
+ int fPausedRow;
/**
Creates the entire UI.