# HG changeset patch # User John W. Eaton # Date 1649046048 14400 # Node ID 4bab8d3fce797893421dba6c7d90432bdd7d99b5 # Parent 960909469245cdff8ad6bd524bd9b8815c86e944# Parent 05328c2145ff89bb8e041efad5c32d0bcceb25ba maint: Merge stable to default. diff -r 960909469245 -r 4bab8d3fce79 libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Sun Apr 03 11:30:26 2022 -0400 +++ b/libinterp/corefcn/graphics.cc Mon Apr 04 00:20:48 2022 -0400 @@ -694,7 +694,7 @@ convert_position (const Matrix& pos, const caseless_str& from_units, const caseless_str& to_units, const Matrix& parent_dim) { - Matrix retval (1, pos.numel ()); + Matrix retval (1, pos.numel (), 0.0); double res = 0; bool is_rectangle = (pos.numel () == 4); bool is_2D = (pos.numel () == 2); @@ -829,8 +829,6 @@ } } } - else if (! is_rectangle && ! is_2D) - retval(2) = 0; return retval; }