# HG changeset patch # User Pantxo Diribarne # Date 1415734954 -3600 # Node ID a2595c4b8efe6b93c9d7547795b964a0b56246b7 # Parent 50922b1c74df83761a2612e6c80715965c8c40ac Make dellistener work again with 3 arguments (bug #43580) * graphics.cc (Fdellistener): test the third argument is a string before trying to convert it. diff -r 50922b1c74df -r a2595c4b8efe libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Mon Nov 10 23:11:20 2014 +0000 +++ b/libinterp/corefcn/graphics.cc Tue Nov 11 20:42:34 2014 +0100 @@ -11064,8 +11064,8 @@ POSTSET); else { - caseless_str persistent = args(2).string_value (); - if (persistent.compare ("persistent")) + if (args(2).is_string () && + args(2).string_value () == "persistent") { go.delete_property_listener (pname, octave_value (), PERSISTENT);