{
const ImageFile& rIF = GetDocument()->getImageFile();
double min, max;
- if (! m_bMinSpecified && ! m_bMaxSpecified)
+ if (! m_bMinSpecified || ! m_bMaxSpecified)
rIF.getMinMax (min, max);
if (m_bMinSpecified)
const wxString& strFilename = wxFileSelector (_T("Export Filename"), _T(""),
_T(""), strExt, strWildcard, wxFD_OVERWRITE_PROMPT | wxFD_SAVE);
- if (strFilename.Length() > 0) {
+ if (! strFilename.empty()) {
rIF.exportImage (strFormatName.mb_str(wxConvUTF8), strFilename.mb_str(wxConvUTF8), 1, 1, m_dMinPixel, m_dMaxPixel);
*theApp->getLog() << _T("Exported file ") << strFilename << _T("\n");
}