Changeset View
Changeset View
Standalone View
Standalone View
src/renderer/KoReportScreenRenderer.cpp
Show All 40 Lines | 40 | { | |||
---|---|---|---|---|---|
41 | if (!document) | 41 | if (!document) | ||
42 | return false; | 42 | return false; | ||
43 | 43 | | |||
44 | if (!context.painter) | 44 | if (!context.painter) | ||
45 | return false; | 45 | return false; | ||
46 | 46 | | |||
47 | OROPage *p = document->page(page); | 47 | OROPage *p = document->page(page); | ||
48 | 48 | | |||
49 | if (!p) { | ||||
staniek: just (!p) as usual | |||||
50 | return false; | ||||
51 | } | ||||
52 | | ||||
49 | // Render Page Objects | 53 | // Render Page Objects | ||
50 | for (int i = 0; i < p->primitives(); i++) { | 54 | for (int i = 0; i < p->primitives(); i++) { | ||
51 | OROPrimitive *prim = p->primitive(i); | 55 | OROPrimitive *prim = p->primitive(i); | ||
52 | 56 | | |||
53 | if (prim->type() == OROTextBox::TextBox) { | 57 | if (prim->type() == OROTextBox::TextBox) { | ||
54 | OROTextBox *tb = dynamic_cast<OROTextBox*>(prim); | 58 | OROTextBox *tb = dynamic_cast<OROTextBox*>(prim); | ||
55 | 59 | | |||
56 | QPointF ps = tb->position(); | 60 | QPointF ps = tb->position(); | ||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |
just (!p) as usual