changeset 29241:8acb139a923c stable

fix regression in variable editor when printing without selection * variable-editor.cc (selected_command_requested): plot all data when selection is empty
author Torsten Lilge <ttl-octave@mailbox.org>
date Thu, 31 Dec 2020 17:31:31 +0100
parents 56978d4b266c
children e2bca6106057 37584021e209
files libgui/src/variable-editor.cc
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc	Wed Dec 30 10:52:51 2020 -0800
+++ b/libgui/src/variable-editor.cc	Thu Dec 31 17:31:31 2020 +0100
@@ -563,7 +563,11 @@
 
     QList<int> range = range_selected ();
     if (range.isEmpty ())
-      return;
+      {
+        // Nothing selected, apply print command to all data
+        range << 1 << m_var_model->data_rows ()
+              << 1 << m_var_model->data_columns ();
+      }
 
     int s1 = m_var_model->data_rows ();
     int s2 = m_var_model->data_columns ();