Added some asserts to check Editor::m_pixelsMovement.

This commit is contained in:
David Capello 2010-08-17 20:44:40 -03:00
parent cea1e15d91
commit 327f627e60

View File

@ -664,6 +664,8 @@ void Editor::controlInfiniteScroll(JMessage msg)
void Editor::dropPixels() void Editor::dropPixels()
{ {
ASSERT(m_pixelsMovement != NULL);
if (m_pixelsMovement->isDragging()) if (m_pixelsMovement->isDragging())
m_pixelsMovement->dropImageTemporarily(); m_pixelsMovement->dropImageTemporarily();
@ -768,6 +770,8 @@ void Editor::editor_update_statusbar_for_standby()
// Update status bar for when the user is dragging pixels // Update status bar for when the user is dragging pixels
void Editor::editor_update_statusbar_for_pixel_movement() void Editor::editor_update_statusbar_for_pixel_movement()
{ {
ASSERT(m_pixelsMovement != NULL);
Rect bounds = m_pixelsMovement->getImageBounds(); Rect bounds = m_pixelsMovement->getImageBounds();
app_get_statusbar()->setStatusText app_get_statusbar()->setStatusText
(100, "Pos %d %d, Size %d %d", (100, "Pos %d %d, Size %d %d",