Changeset View
Changeset View
Standalone View
Standalone View
src/items/image/KReportItemImage.cpp
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Line(s) | 147 | { | |||
---|---|---|---|---|---|
169 | id->setPosition(scenePosition(position()) + offset); | 169 | id->setPosition(scenePosition(position()) + offset); | ||
170 | id->setSize(sceneSize(size())); | 170 | id->setSize(sceneSize(size())); | ||
171 | if (page) { | 171 | if (page) { | ||
172 | page->insertPrimitive(id); | 172 | page->insertPrimitive(id); | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | if (section) { | 175 | if (section) { | ||
176 | OROImage *i2 = dynamic_cast<OROImage*>(id->clone()); | 176 | OROImage *i2 = dynamic_cast<OROImage*>(id->clone()); | ||
177 | if (i2) { | ||||
177 | i2->setPosition(scenePosition(position())); | 178 | i2->setPosition(scenePosition(position())); | ||
178 | section->addPrimitive(i2); | 179 | section->addPrimitive(i2); | ||
179 | } | 180 | } | ||
181 | } | ||||
180 | 182 | | |||
181 | if (!page) { | 183 | if (!page) { | ||
182 | delete id; | 184 | delete id; | ||
183 | } | 185 | } | ||
184 | 186 | | |||
185 | return 0; //Item doesn't stretch the section height | 187 | return 0; //Item doesn't stretch the section height | ||
186 | } | 188 | } | ||
187 | 189 | | |||
188 | 190 | |