# HG changeset patch # User Avinoam # Date 1428584882 -10800 # Node ID e10ad5214a59c61b7bd68bb3aaf5d4e6f2ad2e5f # Parent df3244834a5025d63a15c20991ff2f14ad265158 __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 diff -r df3244834a50 -r e10ad5214a59 scripts/plot/util/private/__go_draw_axes__.m --- 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