]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wrong value
authorJulian Smart <julian@anthemion.co.uk>
Wed, 16 Jan 2013 15:39:10 +0000 (15:39 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 16 Jan 2013 15:39:10 +0000 (15:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index 736fadd3a871310f43e8ebe7f9e2281d67a8c1bf..c794229a873b3c65fb25f479c6a9a2332395a6bd 100644 (file)
@@ -10745,7 +10745,7 @@ bool wxRichTextImage::LoadImageCache(wxDC& dc, bool resetCache)
     // the image so long as the new cached bitmap size hasn't changed.
 
     wxImage image;
-    if (resetCache || m_originalImageSize.GetWidth() <= 0 || m_originalImageSize.GetHeight() <= -1)
+    if (resetCache || m_originalImageSize.GetWidth() <= 0 || m_originalImageSize.GetHeight() <= 0)
     {
         m_imageCache = wxNullBitmap;