[Libreoffice-commits] core.git: vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 21 08:15:44 UTC 2018


 vcl/source/gdi/virdev.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 988cfbaa92e7ec20e2c29b81ba14fb7e314a4a08
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Sep 20 21:43:53 2018 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Sep 21 11:14:59 2018 +0300

    Change slightly mysterious comment into a SAL_WARN()
    
    No memory any more in what circumstances we might end up at this early
    return spot in this function. Is it an error or can it be intentional
    that the function is called like this, no idea. But now at least we
    use a SAL_WARN().
    
    Change-Id: Iaa9c27b4104135d4d3d6787125c9c26004b861cb

diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index 7a7c3b7d855c..8d97085f03b3 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -283,8 +283,7 @@ bool VirtualDevice::InnerImplSetOutputSizePixel( const Size& rNewSize, bool bEra
     {
         if ( bErase )
             Erase();
-        // Yeah, so trying to re-use a VirtualDevice but this time using a
-        // pre-allocated buffer won't work. Big deal.
+        SAL_WARN( "vcl.virdev", "Trying to re-use a VirtualDevice but this time using a pre-allocated buffer");
         return true;
     }
 


More information about the Libreoffice-commits mailing list