xmloff/source/draw/shapeexport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f4f8f6ffd2f9c49e22a73dd15e9075617263f18e
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Sep 14 16:15:04 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Sep 14 19:35:34 2022 +0200

    -Werror=maybe-uninitialized
    
    Change-Id: I7f38dee2356e154493b708424362f535f3164edf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139942
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/xmloff/source/draw/shapeexport.cxx 
b/xmloff/source/draw/shapeexport.cxx
index a9f0291a53b8..14297f25a424 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -4960,7 +4960,7 @@ static void ImpExportEnhancedGeometry( SvXMLExport& 
rExport, const uno::Referenc
             {
                 if (xPropSetInfo->hasPropertyByName(u"WritingMode"))
                 {
-                    sal_Int16 nDirection;
+                    sal_Int16 nDirection = -1;
                     xPropSet->getPropertyValue(u"WritingMode") >>= nDirection;
                     if (nDirection == text::WritingMode2::TB_RL90)
                         fTextRotateAngle -= 90;

Reply via email to