Bug fixed when saving R plot from PlotsDialog panel. Panel text extracted from the code and stored as in a nested class.