Changing the order of function calls in SelectAll() causes the selection rect

size to show up correctly in the status bar.

Fixes #7710.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42310 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2011-06-25 03:24:25 +00:00
parent ccc37bbb77
commit 0f06b3de2a

View File

@ -1503,10 +1503,10 @@ ShowImageView::Undo()
void
ShowImageView::SelectAll()
{
_SetHasSelection(true);
fCopyFromRect.Set(0, 0, fBitmap->Bounds().Width(),
fBitmap->Bounds().Height());
fSelectionBox.SetBounds(this, fCopyFromRect);
_SetHasSelection(true);
Invalidate();
}