[Libreoffice-commits] core.git: 2 commits - accessibility/source basegfx/test

Noel Grandin noel.grandin at collabora.co.uk
Thu Apr 5 07:22:51 UTC 2018


 accessibility/source/extended/accessiblelistboxentry.cxx |    2 +-
 basegfx/test/basegfx2d.cxx                               |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7b0d277e04f178ade10dfd8ee4f1cab2e36dc41b
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Wed Apr 4 16:00:05 2018 +0200

    fix bug in b2dpolypolygon::testTrapezoidHelper
    
    ever since
        commit 82b56544a7a53528970632d086c3cfd8ef879335
        Date:   Wed Jan 1 10:29:40 2014 +0000
        basegfx: accelerate Trapezoid subdivision by avoiding allocations.
    
    found by my new unusedvariablemore plugin
    
    Change-Id: Ie02f4cf576094fb1cd814efed452ae0985814065
    Reviewed-on: https://gerrit.libreoffice.org/52386
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index a840e283132f..82131b417b23 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -692,6 +692,7 @@ public:
         {
             B2DPoint aPoint(aPolygon.getB2DPoint(i));
             aPoint += B2DPoint(0.5-getRandomOrdinal(1),0.5-getRandomOrdinal(1));
+            aPolygonOffset.append(aPoint);
         }
         B2DPolyPolygon aPolyPolygon;
         aPolyPolygon.append(aPolygon);
commit bce3ed11a4838865b53dccdde887d4cba0d48111
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Wed Apr 4 15:32:15 2018 +0200

    fix bug in AccessibleListBoxEntry::implGetParentAccessible()
    
    ever since
        commit 395d9fb1b1cc3ae3bf8ea722ea8fe25490f62589
        Date:   Wed Jun 27 14:32:58 2007 +0000
        INTEGRATION: CWS a11ysep (1.1.2); FILE ADDED
    
    found by my new unusedvariablemore plugin
    
    Change-Id: Ibdb882352af03d5f786e07db5f549df7fcf76de2
    Reviewed-on: https://gerrit.libreoffice.org/52384
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index 9868b47c09a9..2c9bafee467c 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -329,7 +329,7 @@ namespace accessibility
                 aParentPath.pop_back();
 
                 // get the entry for this shortened access path
-                SvTreeListEntry* pParentEntry = getListBox()->GetEntryFromPath( m_aEntryPath );
+                SvTreeListEntry* pParentEntry = getListBox()->GetEntryFromPath( aParentPath );
                 OSL_ENSURE( pParentEntry, "AccessibleListBoxEntry::implGetParentAccessible: could not obtain a parent entry!" );
 
                 if ( pParentEntry )


More information about the Libreoffice-commits mailing list