vcl/source/outdev/text.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9cfa3e086dc3be2b797edcc0e5ef2596b556cf7f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Mar 8 16:57:14 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Mar 8 20:55:54 2022 +0100

    GetDisplayText() returning empty string if widget is clipped out
    
    seen in: make UITest_sort 
UITEST_TEST_NAME="tdf105301.tdf105301.test_tdf105301"
    
    with the fix for tdf#147722 which resulted in the first few rows
    scrolled out of view and GetDisplayText() then returning nothing
    
    Change-Id: Id833a6b5029a490b08e730c641bf9dcdea627b5e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131220
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index b929fb294cd8..e9c9ff59d414 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -1875,7 +1875,7 @@ void OutputDevice::DrawText( const tools::Rectangle& 
rRect, const OUString& rOri
     assert(mpGraphics);
     if( mbInitClipRegion )
         InitClipRegion();
-    if( mbOutputClipped && !bDecomposeTextRectAction )
+    if (mbOutputClipped && !bDecomposeTextRectAction && !pDisplayText)
         return;
 
     // temporarily disable mtf action generation (ImplDrawText _does_

Reply via email to