Kaydet (Commit) d927a3cc authored tarafından David Tardon's avatar David Tardon

WaE: unused variable 'nPages'

Change-Id: Iccc8dc88e9afe7713e5d8b7ffdd94b0a42277b23
üst 8fe626d7
......@@ -71,20 +71,21 @@ Size DocumentToGraphicRenderer::getDocumentSizeIn100mm(sal_Int32 aCurrentPage)
renderProperties[2].Name = "View";
renderProperties[2].Value <<= mxController;
Sequence< beans::PropertyValue > aResult;
awt::Size aSize;
sal_Int32 nPages = mxRenderable->getRendererCount( selection, renderProperties );
aResult = mxRenderable->getRenderer(aCurrentPage - 1, selection, renderProperties );
awt::Size aSize;
for( sal_Int32 nProperty = 0, nPropertyCount = aResult.getLength(); nProperty < nPropertyCount; ++nProperty )
if (nPages >= aCurrentPage)
{
if ( aResult[ nProperty ].Name == "PageSize" )
Sequence< beans::PropertyValue > aResult = mxRenderable->getRenderer(aCurrentPage - 1, selection, renderProperties );
for( sal_Int32 nProperty = 0, nPropertyCount = aResult.getLength(); nProperty < nPropertyCount; ++nProperty )
{
aResult[ nProperty ].Value >>= aSize;
if ( aResult[ nProperty ].Name == "PageSize" )
{
aResult[ nProperty ].Value >>= aSize;
}
}
}
return Size( aSize.Width, aSize.Height );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment