]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
added an error message if a bitmap can't be addedto the image list
[wxWidgets.git] / src / common / prntbase.cpp
index 36de9a627ddb15ffb0849ddf7eecdda4c63696b4..035a76c16daf04e6ee9f99a90098900ada8b00d2 100644 (file)
@@ -408,7 +408,7 @@ void wxPreviewControlBar::SetZoomControl(int zoom)
 int wxPreviewControlBar::GetZoomControl()
 {
   char buf[20];
-  if (m_zoomControl && m_zoomControl->GetStringSelection())
+  if (m_zoomControl && (m_zoomControl->GetStringSelection() != ""))
   {
     strcpy(buf, m_zoomControl->GetStringSelection());
     buf[strlen(buf) - 1] = 0;