Skip to content
Commit 662eb25b authored by Liliana Polyanska's avatar Liliana Polyanska
Browse files

Problem: switching between LVs multiplied legends instead of replacing them.

This happened bc the graphical object handle was used alone in a logical statement (and try catch was masking the error).
Handle properties have been changing (esp. In R2018a), so handles should not be used in logical statements which rely on their numeric interpretation.
Solved  by changing if txtbox_hdl, delete(txtbox_hdl); to if isvalid (txtbox_hdl), delete(txtbox_hdl);
parent f003fef4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment