Skip to content

Commit 1749733

Browse files
committed
fix crash when digitizing a part and adding it to a (cached) single part geometry
1 parent 95cc4ba commit 1749733

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/plugins/processing/tests/PackagingTests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def testGrass(self):
2727

2828
def testOtb(self):
2929
folder = OTBUtils.findOtbPath()
30-
self.assertIsNotNone(folder)
30+
self.assertIsNotNone(folder)
3131

3232
def runTests():
3333
t = unittest.TestLoader().loadTestsFromTestCase(PackageTests)
34-
unittest.TextTestRunner(verbosity=3, stream=sys.stdout).run(t)
34+
unittest.TextTestRunner(verbosity=3, stream=sys.stdout).run(t)

src/core/geometry/qgsgeometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,8 @@ bool QgsGeometry::convertToMultiType()
904904
return false;
905905
}
906906

907+
detach( true );
907908
multiGeom->addGeometry( d->geometry );
908-
detach( false );
909909
d->geometry = multiGeom;
910910
removeWkbGeos();
911911
return true;

0 commit comments

Comments
 (0)