re: aaditya - r31467
Martin Sevior <[email protected]>
| Newsgroups | gmane.editors.abiword.devel |
|---|---|
| Message-ID | <CAOJESBU3GMsQc-jqb2fwxvYuqoZWoiNxihy+fKj+GC9td63rcw@mail.gmail.com> |
Hi Aaditya,
Your code should be this:
if(pContainer -> getContainerType() == FP_CONTAINER_LINE)
{
da.pG->setTextAngle(iA);
pContainer-draw(&da);
da.pG->setTextAngle(0.0);
}
Now you have to explain to me why the code I've just written is
correct and what is wrong with yours.
(Sorry it's the Professor in me :-)
Cheers
Martin
+ pContainer->draw(&da);
+ if(pContainer -> getContainerType() ==
FP_CONTAINER_LINE)
+ pG->setTextAngle(iA);
+ else
+ pG->setTextAngle(0.0);