]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagjpeg.cpp
Fix DrawStatusField() to work correctly with wxSB_FLAT style.
[wxWidgets.git] / src / common / imagjpeg.cpp
index a06f0dd8f2c15fbd7ed831e4c851c9ea0f64039b..3dbadbe1cfd11d874827058386f4ed0a02247582 100644 (file)
@@ -251,7 +251,9 @@ bool wxJPEGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos
        * We need to clean up the JPEG object, close the input file, and return.
        */
       if (verbose)
+      {
         wxLogError(_("JPEG: Couldn't load - file is probably corrupted."));
+      }
       (cinfo.src->term_source)(&cinfo);
       jpeg_destroy_decompress(&cinfo);
       if (image->Ok()) image->Destroy();
@@ -421,7 +423,9 @@ bool wxJPEGHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbo
          * We need to clean up the JPEG object, close the input file, and return.
          */
          if (verbose)
+         {
             wxLogError(_("JPEG: Couldn't save image."));
+         }
          jpeg_destroy_compress(&cinfo);
          return false;
     }