diff options
Diffstat (limited to 'basctl/source/basicide/basicrenderable.cxx')
-rw-r--r-- | basctl/source/basicide/basicrenderable.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/basctl/source/basicide/basicrenderable.cxx b/basctl/source/basicide/basicrenderable.cxx index 013807e202b3..ee5ed4bef958 100644 --- a/basctl/source/basicide/basicrenderable.cxx +++ b/basctl/source/basicide/basicrenderable.cxx @@ -25,6 +25,8 @@ #include <tools/multisel.hxx> #include <tools/resary.hxx> +#include <comphelper/propertysequence.hxx> + namespace basctl { @@ -136,12 +138,12 @@ Sequence<beans::PropertyValue> SAL_CALL Renderable::getRenderer ( { Size aPageSize( pPrinter->PixelToLogic( pPrinter->GetPaperSizePixel(), MapMode( MAP_100TH_MM ) ) ); - aVals.realloc( 1 ); - aVals[0].Name = "PageSize" ; awt::Size aSize; aSize.Width = aPageSize.Width(); aSize.Height = aPageSize.Height(); - aVals[0].Value <<= aSize; + aVals = ::comphelper::InitPropertySequence({ + { "PageSize", makeAny(aSize) } + }); } appendPrintUIOptions( aVals ); |