changeset 20092:e10ad5214a59

__go_draw_axes__.m: change computation of number of lines (bug #44683) * scripts/plot/util/private/__go_draw_axes__.m: find number of occurences of "\n" in the string and add it to the number of rows
author Avinoam
date Thu, 09 Apr 2015 16:08:02 +0300
parents df3244834a50
children 0c93c1542d5b
files scripts/plot/util/private/__go_draw_axes__.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__go_draw_axes__.m	Thu Apr 09 16:36:56 2015 -0400
+++ b/scripts/plot/util/private/__go_draw_axes__.m	Thu Apr 09 16:08:02 2015 +0300
@@ -1348,6 +1348,7 @@
 
         if (ischar (obj.string))
           num_lines = rows (obj.string);
+          num_lines += numel (strfind (obj.string, "\n"));
         else
           num_lines = numel (obj.string);
         endif