Issue Feature Closed

#28794currentVal in css_styled_content

Christian Welzel 08/06/11, 11:19 updated 10/23/17, 22:20

Description

Hi there,

in css_styled_content in render_textpic() line 647 the current value of the cObject
is set to the current filename in the loop. Thats fine.
In line 822 a similar loop is done, but in this case currentVal is NOT set to the
filename of the image currently processed.

Is this intentional or a bug?

I try to extend getData() of cObject but during rendering i always get the last
value of the first loop as currentVal.

Btw: Instead of using
$this->cObj->data[$this->cObj->currentValKey] = $totalImagePath;
it would be much more OOP to use
$this->cObj->setCurrentVal($totalImagePath);

Thx

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.