src/ldDocument.cc

branch
experimental
changeset 908
3b0b2b1738e9
parent 907
cf150959ccc4
child 910
a6c180bffa12
equal deleted inserted replaced
907:cf150959ccc4 908:3b0b2b1738e9
1406 1406
1407 // Got another sub-file reference, inline it if we're deep-inlining. If not, 1407 // Got another sub-file reference, inline it if we're deep-inlining. If not,
1408 // just add it into the objects normally. Yay, recursion! 1408 // just add it into the objects normally. Yay, recursion!
1409 if (deep == true and obj->type() == OBJ_Subfile) 1409 if (deep == true and obj->type() == OBJ_Subfile)
1410 { 1410 {
1411 // If the subfile is BFC-inverted the rest of the files need to follow.
1412 // This cannot be done in LDSubfile::inlineContents.
1413 for (LDObjectPtr otherobj : obj.staticCast<LDSubfile>()->inlineContents (deep, renderinline)) 1411 for (LDObjectPtr otherobj : obj.staticCast<LDSubfile>()->inlineContents (deep, renderinline))
1414 { 1412 {
1415 if (invertnext) 1413 if (invertnext)
1416 otherobj->setBlockWinding (Winding (int (otherobj->blockWinding()) ^ 1)); 1414 otherobj->setBlockWinding (Winding (int (otherobj->blockWinding()) ^ 1));
1417 1415

mercurial