From 327f627e60f21c095d1569934fa1baeb2e87d518 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 17 Aug 2010 20:44:40 -0300 Subject: [PATCH] Added some asserts to check Editor::m_pixelsMovement. --- src/widgets/editor/editor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/editor/editor.cpp b/src/widgets/editor/editor.cpp index 30edfae12..88670bde0 100644 --- a/src/widgets/editor/editor.cpp +++ b/src/widgets/editor/editor.cpp @@ -664,6 +664,8 @@ void Editor::controlInfiniteScroll(JMessage msg) void Editor::dropPixels() { + ASSERT(m_pixelsMovement != NULL); + if (m_pixelsMovement->isDragging()) m_pixelsMovement->dropImageTemporarily(); @@ -768,6 +770,8 @@ void Editor::editor_update_statusbar_for_standby() // Update status bar for when the user is dragging pixels void Editor::editor_update_statusbar_for_pixel_movement() { + ASSERT(m_pixelsMovement != NULL); + Rect bounds = m_pixelsMovement->getImageBounds(); app_get_statusbar()->setStatusText (100, "Pos %d %d, Size %d %d",