Changeset View
Changeset View
Standalone View
Standalone View
libs/flake/svg/SvgSavingContext.cpp
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 138 | if (id.isEmpty()) { | |||
---|---|---|---|---|---|
139 | // differentiate a little between shape types | 139 | // differentiate a little between shape types | ||
140 | if (dynamic_cast<const KoShapeGroup*>(obj)) | 140 | if (dynamic_cast<const KoShapeGroup*>(obj)) | ||
141 | id = "group"; | 141 | id = "group"; | ||
142 | else if (dynamic_cast<const KoShapeLayer*>(obj)) | 142 | else if (dynamic_cast<const KoShapeLayer*>(obj)) | ||
143 | id = "layer"; | 143 | id = "layer"; | ||
144 | else | 144 | else | ||
145 | id = "shape"; | 145 | id = "shape"; | ||
146 | } | 146 | } | ||
147 | // create a compeletely new id based on object name | 147 | // create a completely new id based on object name | ||
148 | // or a generic name | 148 | // or a generic name | ||
149 | id = createUID(id); | 149 | id = createUID(id); | ||
150 | } | 150 | } | ||
151 | // record id for this shape | 151 | // record id for this shape | ||
152 | d->shapeIds.insert(obj, id); | 152 | d->shapeIds.insert(obj, id); | ||
153 | } | 153 | } | ||
154 | return id; | 154 | return id; | ||
155 | } | 155 | } | ||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |