1 Set proper table height when creating a fresh one
3 From: Thorsten Behrens <thb@openoffice.org>
8 sd/source/ui/table/tablefunction.cxx | 7 ++++++-
9 1 files changed, 6 insertions(+), 1 deletions(-)
12 diff --git sd/source/ui/table/tablefunction.cxx sd/source/ui/table/tablefunction.cxx
13 index 3e9f471..8ff6d89 100644
14 --- sd/source/ui/table/tablefunction.cxx
15 +++ sd/source/ui/table/tablefunction.cxx
17 #include "DrawViewShell.hxx"
18 #include "drawdoc.hxx"
19 #include "DrawDocShell.hxx"
20 +#include "Outliner.hxx"
22 #include "drawview.hxx"
23 #include "sdresid.hxx"
24 @@ -150,8 +151,12 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
25 nRows = pDlg->getRows();
28 - Size aSize( 14100, 200 );
29 + Size aSize( 14100, 3000 );
31 + ::sd::Outliner* pSdOutliner = GetDoc()->GetOutliner();
32 + const long nTextHeight = pSdOutliner->GetTextHeight();
33 + aSize.Height() = std::max(aSize.Height(),nRows*nTextHeight);
36 Rectangle aWinRect(aPos, GetActiveWindow()->GetOutputSizePixel() );
37 aPos = aWinRect.Center();