X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fviews.cpp;h=ea03d88be2646479c00f7f0291436fd12e877132;hp=3411a45f67061e52f7970f54c35baff9149db003;hb=4b49778f44b9149451ba36e5f1bd7830c74c8fee;hpb=4ff226fc6afb090a5211f3c0c12650207609ba90 diff --git a/src/views.cpp b/src/views.cpp index 3411a45..ea03d88 100644 --- a/src/views.cpp +++ b/src/views.cpp @@ -1312,7 +1312,7 @@ ImageFileView::OnExport (wxCommandEvent& event) 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"); }