[aseprite] 89/128: Disable assert in BrushPreview::clearPixelDelegate

Tobias Hansen thansen at moszumanska.debian.org
Mon May 9 21:24:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 53683579b89666bab2389cdcb41b85f80cc0a83b
Author: David Capello <davidcapello at gmail.com>
Date:   Mon May 2 13:04:31 2016 -0300

    Disable assert in BrushPreview::clearPixelDelegate
    
    This assert fails too often and we prefer to show some data
    to try to fix it in a near future instead of showing an assertion
    dialog on Windows or closing the whole app.
---
 src/app/ui/editor/brush_preview.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/app/ui/editor/brush_preview.cpp b/src/app/ui/editor/brush_preview.cpp
index 6e1946f..92f9663 100644
--- a/src/app/ui/editor/brush_preview.cpp
+++ b/src/app/ui/editor/brush_preview.cpp
@@ -500,7 +500,12 @@ void BrushPreview::clearPixelDelegate(ui::Graphics* g, const gfx::Point& pt, gfx
     }
   }
 
-  ASSERT(m_savedPixelsIterator <= m_savedPixelsLimit);
+#if _DEBUG
+  if (!(m_savedPixelsIterator <= m_savedPixelsLimit)) {
+    TRACE("m_savedPixelsIterator <= m_savedPixelsLimit: %d <= %d failed\n",
+          m_savedPixelsIterator, m_savedPixelsLimit);
+  }
+#endif
 }
 
 } // namespace app

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list