Port changes from mainstream.
This commit is contained in:
parent
46b2814981
commit
5b9c1b1d55
|
@ -167,7 +167,7 @@ BAD_READ_BLOCKS, /*!< error in block read process. */
|
||||||
BAD_READ_ENTITIES, /*!< error in entities read process. */
|
BAD_READ_ENTITIES, /*!< error in entities read process. */
|
||||||
BAD_READ_OBJECTS, /*!< error in objects read process. */
|
BAD_READ_OBJECTS, /*!< error in objects read process. */
|
||||||
BAD_READ_SECTION, /*!< error in sections read process. */
|
BAD_READ_SECTION, /*!< error in sections read process. */
|
||||||
BAD_CODE_PARSED, /*!< error in any parseCodes() method. */
|
BAD_CODE_PARSED, /*!< error in any parseCodes() method. */
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class DebugLevel {
|
enum class DebugLevel {
|
||||||
|
|
|
@ -2494,7 +2494,6 @@ bool dxfRW::processViewport() {
|
||||||
if (!vp.parseCode(code, reader)) {
|
if (!vp.parseCode(code, reader)) {
|
||||||
return setError( DRW::BAD_CODE_PARSED);
|
return setError( DRW::BAD_CODE_PARSED);
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return setError(DRW::BAD_READ_ENTITIES);
|
return setError(DRW::BAD_READ_ENTITIES);
|
||||||
|
@ -2684,11 +2683,10 @@ bool dxfRW::processPolyline() {
|
||||||
nextentity = reader->getString();
|
nextentity = reader->getString();
|
||||||
DRW_DBG(nextentity); DRW_DBG("\n");
|
DRW_DBG(nextentity); DRW_DBG("\n");
|
||||||
if (nextentity != "VERTEX") {
|
if (nextentity != "VERTEX") {
|
||||||
iface->addPolyline(pl);
|
iface->addPolyline(pl);
|
||||||
return true; //found new entity or ENDSEC, terminate
|
return true; //found new entity or ENDSEC, terminate
|
||||||
} else {
|
|
||||||
processVertex(&pl);
|
|
||||||
}
|
}
|
||||||
|
processVertex(&pl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pl.parseCode(code, reader)) { //parseCode just initialize the members of pl
|
if (!pl.parseCode(code, reader)) { //parseCode just initialize the members of pl
|
||||||
|
@ -2710,8 +2708,9 @@ bool dxfRW::processVertex(DRW_Polyline *pl) {
|
||||||
nextentity = reader->getString();
|
nextentity = reader->getString();
|
||||||
DRW_DBG(nextentity); DRW_DBG("\n");
|
DRW_DBG(nextentity); DRW_DBG("\n");
|
||||||
if (nextentity == "SEQEND") {
|
if (nextentity == "SEQEND") {
|
||||||
return true; //found SEQEND no more vertex, terminate
|
return true; //found SEQEND no more vertex, terminate
|
||||||
} else if (nextentity == "VERTEX"){
|
}
|
||||||
|
if (nextentity == "VERTEX"){
|
||||||
v.reset(new DRW_Vertex()); //another vertex
|
v.reset(new DRW_Vertex()); //another vertex
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user