summaryrefslogtreecommitdiffstats
path: root/chrome/views/window_delegate.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 22:40:34 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 22:40:34 +0000
commit5a068bd029b1d28374f0cf26cbb74bc1ef33bd0c (patch)
tree4ac3c9fae806384f0c5c1b8cc4bfd1efae7aa50a /chrome/views/window_delegate.cc
parentd66cdc5623b9e6815c1048c02b6ca99664ec1bf7 (diff)
downloadchromium_src-5a068bd029b1d28374f0cf26cbb74bc1ef33bd0c.zip
chromium_src-5a068bd029b1d28374f0cf26cbb74bc1ef33bd0c.tar.gz
chromium_src-5a068bd029b1d28374f0cf26cbb74bc1ef33bd0c.tar.bz2
Fix broken size restoration for bookmark manager. Initializing a rect incorrectly, and clobbering the maximized state during initial sizing.
http://crbug.com/4437 Review URL: http://codereview.chromium.org/10758 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5512 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/window_delegate.cc')
-rw-r--r--chrome/views/window_delegate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/views/window_delegate.cc b/chrome/views/window_delegate.cc
index 7ce676e..381ea14 100644
--- a/chrome/views/window_delegate.cc
+++ b/chrome/views/window_delegate.cc
@@ -57,7 +57,7 @@ bool WindowDelegate::GetSavedWindowBounds(gfx::Rect* bounds) const {
!dictionary->GetInteger(L"bottom", &bottom))
return false;
- bounds->SetRect(left, top, right, bottom);
+ bounds->SetRect(left, top, right - left, bottom - top);
return true;
}