From 83830d52eb93a5c8e94dade77c346c9ca9661e13 Mon Sep 17 00:00:00 2001 From: David Bailes Date: Sat, 31 Oct 2015 10:39:50 +0000 Subject: [PATCH] Fix for bug 1254 In LabelDialog::Show(bool show), only set initial row when show == true. --- src/LabelDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LabelDialog.cpp b/src/LabelDialog.cpp index fdfdc9de4..9aa11a4ba 100644 --- a/src/LabelDialog.cpp +++ b/src/LabelDialog.cpp @@ -287,7 +287,7 @@ bool LabelDialog::Show(bool show) // Set initial row // (This will not work until the grid is actually displayed) - if (mInitialRow != -1) { + if (show && mInitialRow != -1) { mGrid->SetGridCursor(mInitialRow, Col_Label); }