forms/source/component/ImageControl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f9bad9e8fbade0da2c706d37e9a4cc9db5fd44ba
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri Jan 20 17:17:52 2017 +0000

    don't need an intermediate Image
    
    Change-Id: I090d94cfe433763ded70f28b5139772bca229c34

diff --git a/forms/source/component/ImageControl.cxx 
b/forms/source/component/ImageControl.cxx
index 465b859..966bbb1 100644
--- a/forms/source/component/ImageControl.cxx
+++ b/forms/source/component/ImageControl.cxx
@@ -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
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to