don't need an intermediate Image

Change-Id: I090d94cfe433763ded70f28b5139772bca229c34
This commit is contained in:
Caolán McNamara
2017-01-20 17:17:52 +00:00
parent 8c32579d48
commit f9bad9e8fb

View File

@@ -659,7 +659,7 @@ void SAL_CALL OImageControlModel::startProduction( ) throw (RuntimeException, s
IMPL_LINK( OImageControlModel, OnImageImportDone, ::Graphic*, i_pGraphic, void )
{
const Reference< XGraphic > xGraphic( i_pGraphic != nullptr ? Image( i_pGraphic->GetBitmapEx() ).GetXGraphic() : nullptr );
const Reference< XGraphic > xGraphic(i_pGraphic != nullptr ? i_pGraphic->GetXGraphic() : nullptr);
m_bExternalGraphic = false;
try
{