summaryrefslogtreecommitdiffstats
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-19 15:13:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-19 15:18:30 +0100
commitd3c1c8d7587239abcf5448ee143a61fe54b01422 (patch)
tree205d8ca482dbb480bf773da6235ee134b68831ce /svx
parentuse GeneratedPackage to deliver uno loader classes (diff)
downloadcore-d3c1c8d7587239abcf5448ee143a61fe54b01422.tar.gz
core-d3c1c8d7587239abcf5448ee143a61fe54b01422.zip
expand scheme to share sizes for paragraph dialog preview widgets
Change-Id: Id1ded6828468ff956c83eb57f1da62fd80761b5d
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/paraprev.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/paraprev.cxx b/svx/source/dialog/paraprev.cxx
index 255f42b6523e..8de4a379502c 100644
--- a/svx/source/dialog/paraprev.cxx
+++ b/svx/source/dialog/paraprev.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sfx2/dialoghelper.hxx>
#include <svx/paraprev.hxx>
#include <vcl/builder.hxx>
@@ -75,7 +76,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxParaPrevWindow(Window *p
Size SvxParaPrevWindow::GetOptimalSize() const
{
- return LogicToPixel(Size(68 , 112), MAP_APPFONT);
+ return getParagraphPreviewOptimalSize(this);
}
// -----------------------------------------------------------------------