From 0f06b3de2a7af7f218fc7c162b01d2c9444891d3 Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Sat, 25 Jun 2011 03:24:25 +0000 Subject: [PATCH] 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 --- src/apps/showimage/ShowImageView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index 0389a2559f..f5b194e4a0 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -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(); }