Skip to content
Permalink
Browse files

fix crash when digitizing a part and adding it to a (cached) single p…

…art geometry
  • Loading branch information
jef-n committed Jun 11, 2015
1 parent 95cc4ba commit 1749733702276b2c22ab3fb20f008956835fd915
Showing with 3 additions and 3 deletions.
  1. +2 −2 python/plugins/processing/tests/PackagingTests.py
  2. +1 −1 src/core/geometry/qgsgeometry.cpp
@@ -27,8 +27,8 @@ def testGrass(self):

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;

0 comments on commit 1749733

Please sign in to comment.
You can’t perform that action at this time.