mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix crash when digitizing a part and adding it to a (cached) single part geometry
This commit is contained in:
parent
95cc4ba51a
commit
1749733702
@ -27,8 +27,8 @@ class PackageTests(unittest.TestCase):
|
||||
|
||||
def testOtb(self):
|
||||
folder = OTBUtils.findOtbPath()
|
||||
self.assertIsNotNone(folder)
|
||||
self.assertIsNotNone(folder)
|
||||
|
||||
def runTests():
|
||||
t = unittest.TestLoader().loadTestsFromTestCase(PackageTests)
|
||||
unittest.TextTestRunner(verbosity=3, stream=sys.stdout).run(t)
|
||||
unittest.TextTestRunner(verbosity=3, stream=sys.stdout).run(t)
|
||||
|
@ -904,8 +904,8 @@ bool QgsGeometry::convertToMultiType()
|
||||
return false;
|
||||
}
|
||||
|
||||
detach( true );
|
||||
multiGeom->addGeometry( d->geometry );
|
||||
detach( false );
|
||||
d->geometry = multiGeom;
|
||||
removeWkbGeos();
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user