[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 15 09:38:15 UTC 2019


 sw/source/uibase/docvw/edtwin.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 977b362ec73cde1942f3052e5e2d0fa9882b062b
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Apr 12 15:59:02 2019 +0100
Commit:     Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Mon Apr 15 11:37:31 2019 +0200

    rhbz#1699347 __glibcxx_requires_subscript enabled in fedora release builds
    
    and so triggering a crash and exit on trying to get address of 0th element of a
    0 len vector
    
    Change-Id: I205478b6c2878d3758d91812db46fe8ad58e37df
    Reviewed-on: https://gerrit.libreoffice.org/70673
    Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
    Tested-by: Michael Stahl <Michael.Stahl at cib.de>

diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 2e9f77b1a063..4ccbd77d9c1c 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5870,7 +5870,7 @@ void QuickHelpData::Start( SwWrtShell& rSh, sal_uInt16 nWrdLen )
         const ExtTextInputAttr nVal = ExtTextInputAttr::DottedUnderline |
                                 ExtTextInputAttr::Highlight;
         const std::vector<ExtTextInputAttr> aAttrs( nL, nVal );
-        CommandExtTextInputData aCETID( sStr, &aAttrs[0], nL,
+        CommandExtTextInputData aCETID( sStr, aAttrs.data(), nL,
                                         0, false );
 
         //fdo#33092. If the current input language is the default


More information about the Libreoffice-commits mailing list