mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 19:13:29 +00:00
Added some asserts to check Editor::m_pixelsMovement.
This commit is contained in:
parent
cea1e15d91
commit
327f627e60
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user