# HG changeset patch # User Pantxo Diribarne # Date 1434999537 -7200 # Node ID dc74b700cdec684a9ecd08f9bfbb101636e271af # Parent efe22f9b53a3d8f16610cc334ea16a2df1c7a843 fix crash when selecting an image (bug #45372) gl-select.h (opengl_selector::draw_image): directly use octave_value columns/rows mehtods instead of blindly casting into Matrix. diff -r efe22f9b53a3 -r dc74b700cdec libgui/graphics/gl-select.cc --- a/libgui/graphics/gl-select.cc Mon Jun 22 12:06:53 2015 -0400 +++ b/libgui/graphics/gl-select.cc Mon Jun 22 20:58:57 2015 +0200 @@ -206,11 +206,11 @@ opengl_selector::draw_image (const image::properties& props) { Matrix xd = props.get_xdata ().matrix_value (); - octave_idx_type nc = props.get_cdata ().matrix_value ().columns (); + octave_idx_type nc = props.get_cdata ().columns (); double x_pix_size = (xd(1) - xd(0)) / (nc - 1); Matrix yd = props.get_ydata ().matrix_value (); - octave_idx_type nr = props.get_cdata ().matrix_value ().rows (); + octave_idx_type nr = props.get_cdata ().rows (); double y_pix_size = (yd(1) - yd(0)) / (nr - 1); ColumnVector p1(3, 0.0), p2(3, 0.0), p3(3, 0.0), p4(3, 0.0);