Fixed Bug 1891. The update of the scale was only done if the value has
been modified when compared with the original data and not compared to the
displayed data. Additionally, a possible crash has been fixed due to an
invalid pointer not being reset.
Attempt to fix Bug 1914. Declared the PlotWindow destructor as virtual
since the class contains virtual methods.