[PATCH libreoffice-4-0] Resolves: fdo#61241 background style dialog too small
Caolán McNamara (via_Code_Review)
gerrit at gerrit.libreoffice.org
Wed Apr 3 07:27:30 PDT 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3188
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/88/3188/1
Resolves: fdo#61241 background style dialog too small
(cherry picked from commit 1ccbb620946c7032c57054550b08ad5362fe1c3f)
Conflicts:
vcl/source/control/tabctrl.cxx
vcl/source/window/tabpage.cxx
Change-Id: Ie7396b63a64e89bb7aa7c0e284faab7ed380c4c1
---
M vcl/source/control/tabctrl.cxx
M vcl/source/window/tabpage.cxx
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 4e1afc2..19163f1 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -29,6 +29,7 @@
#include "vcl/tabpage.hxx"
#include "vcl/tabctrl.hxx"
#include "vcl/controllayout.hxx"
+#include "vcl/layout.hxx"
#include "vcl/lstbox.hxx"
#include "controldata.hxx"
@@ -2179,7 +2180,7 @@
if (!pPage)
continue;
- Size aPageSize(pPage->GetOptimalSize(WINDOWSIZE_PREFERRED));
+ Size aPageSize(VclContainer::getLayoutRequisition(*pPage));
if (aPageSize.Width() > aOptimalPageSize.Width())
aOptimalPageSize.Width() = aPageSize.Width();
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index 3546c4f..d3b1f34 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -222,7 +222,7 @@
return Window::GetOptimalSize(eType);
Size aSize;
if (isLayoutEnabled())
- aSize = GetWindow(WINDOW_FIRSTCHILD)->GetOptimalSize(eType);
+ aSize = VclContainer::getLayoutRequisition(*GetWindow(WINDOW_FIRSTCHILD));
else
aSize = getLegacyBestSizeForChildren(*this);
return Window::CalcWindowSize(aSize);
--
To view, visit https://gerrit.libreoffice.org/3188
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie7396b63a64e89bb7aa7c0e284faab7ed380c4c1
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Caolán McNamara <caolanm at redhat.com>
More information about the LibreOffice
mailing list