diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-08-15 20:25:15 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-08-15 20:25:15 +0000 |
| commit | 4dc583f5b28383a38d6140dfa475e8d2cf8ff49e (patch) | |
| tree | bcfcb19eb192ca3700b053ba9e8b4bc4a41a0729 /src | |
| parent | inkview: Convert to ApplicationWindow (diff) | |
| download | inkscape-4dc583f5b28383a38d6140dfa475e8d2cf8ff49e.tar.gz inkscape-4dc583f5b28383a38d6140dfa475e8d2cf8ff49e.zip | |
Fix bug reported in http://www.viva64.com/en/b/0419/
(bzr r15058)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-mesh-array.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sp-mesh-array.cpp b/src/sp-mesh-array.cpp index 6bd5c85d7..0dd89ac96 100644 --- a/src/sp-mesh-array.cpp +++ b/src/sp-mesh-array.cpp @@ -1046,11 +1046,12 @@ void SPMeshNodeArray::create( SPMesh *mg, SPItem *item, Geom::OptRect bbox ) { if( !bbox ) { // Set default size to bounding box if size not given. std::cout << "SPMeshNodeArray::create(): bbox empty" << std::endl; - Geom::OptRect bbox = item->geometricBounds(); - } - if( !bbox ) { - std::cout << "SPMeshNodeArray::create: ERROR: No bounding box!" << std::endl; - return; + bbox = item->geometricBounds(); + + if( !bbox ) { + std::cout << "SPMeshNodeArray::create: ERROR: No bounding box!" << std::endl; + return; + } } Geom::Coord const width = bbox->dimensions()[Geom::X]; |
