diff options
| author | Manuel Reimer <manuel.reimer@gmx.de> | 2014-11-02 13:41:30 +0100 |
|---|---|---|
| committer | Manuel Reimer <manuel.reimer@gmx.de> | 2014-11-02 13:41:30 +0100 |
| commit | ded6119b3b60eb2f36bbc1df8d6050c49f9e2a1f (patch) | |
| tree | 11a1118233ebfe96cc034ba7e9914b379f85cfc1 /libtemplate/templatepixmap.c | |
| parent | e07e56a3faced2f2ef7459cc13c2bda6f65f68ba (diff) | |
| parent | ef4502cc02b4a1b287b6710826f04f953fd4691b (diff) | |
| download | vdr-plugin-skindesigner-ded6119b3b60eb2f36bbc1df8d6050c49f9e2a1f.tar.gz vdr-plugin-skindesigner-ded6119b3b60eb2f36bbc1df8d6050c49f9e2a1f.tar.bz2 | |
Merge branch 'master' of git://projects.vdr-developer.org/vdr-plugin-skindesigner
Diffstat (limited to 'libtemplate/templatepixmap.c')
| -rw-r--r-- | libtemplate/templatepixmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libtemplate/templatepixmap.c b/libtemplate/templatepixmap.c index 4fbd513..a1d032b 100644 --- a/libtemplate/templatepixmap.c +++ b/libtemplate/templatepixmap.c @@ -78,11 +78,12 @@ void cTemplatePixmap::ParseDynamicParameters(map <string,int> *intTokens, bool i for (vector<cTemplateFunction*>::iterator func = functions.begin(); func != functions.end(); func++) {
(*func)->SetContainer(x, y, width, height);
- (*func)->CalculateParameters();
+ (*func)->ReCalculateParameters();
(*func)->CompleteParameters();
if ((*func)->GetType() == ftLoop) {
cTemplateLoopFunction *loopFunc = dynamic_cast<cTemplateLoopFunction*>(*func);
if (!loopFunc->Ready()) {
+ loopFunc->CalculateParameters();
loopFunc->SetIntTokens(intTokens);
loopFunc->ParseParameters();
loopFunc->UnsetIntTokens();
@@ -137,8 +138,6 @@ bool cTemplatePixmap::CalculateParameters(void) { for (vector<cTemplateFunction*>::iterator func = functions.begin(); func != functions.end(); func++) {
(*func)->SetGlobals(globals);
- if (!Ready())
- continue;
(*func)->SetContainer(0, 0, pixWidth, pixHeight);
paramsValid = (*func)->CalculateParameters();
(*func)->CompleteParameters();
|
