git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56241 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -432,9 +432,8 @@ int Vect__open_old(struct Map_info *Map, const char *name, const char *mapset,
if (level < 2 && Map->head.with_z) {
/* topo has been initialized as 2D, update to 3D */
dig_free_plus(&(Map->plus));
-
- Map->plus.with_z = Map->head.with_z;
dig_init_plus(&(Map->plus));
+ Map->plus.with_z = Map->head.with_z;
}
else if (level > 1) {