- if (m_bMinSpecified || m_bMaxSpecified) {
- m_bMinSpecified = false;
- m_bMaxSpecified = false;
- OnUpdate (this, NULL);
+ const PlotFile& rPlotFile = GetDocument()->getPlotFile();
+ if (! rPlotFile.getMinMax (1, m_dMinPixel, m_dMaxPixel)) {
+ *theApp->getLog() << _T("Error: unable to find Min/Max\n");
+ return;