Files
Trevor Woerner 49cb8758eb gtkmathview: fix build error
When building, I was seeing the following error which this patch fixes:

	../../../src/frontend/common/TemplateElementIterator.hh:46:18: error:
	'valid' was not declared in this scope, and no declarations were found by
	argument-dependent lookup at the point of instantiation [-fpermissive]

Upstream-Status: Submitted [padovani .at. di .dot. unito .dot. it]
Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-04-20 11:03:24 +02:00

14 lines
605 B
Diff

Index: gtkmathview-0.8.0/src/frontend/common/TemplateElementIterator.hh
===================================================================
--- gtkmathview-0.8.0.orig/src/frontend/common/TemplateElementIterator.hh
+++ gtkmathview-0.8.0/src/frontend/common/TemplateElementIterator.hh
@@ -43,7 +43,7 @@ protected:
findValidNodeForward(const typename Model::Node& p0) const
{
for (typename Model::Node p = p0; p; p = Model::getNextSibling(p))
- if (valid(p)) return Model::asElement(p);
+ if (this->valid(p)) return Model::asElement(p);
return typename Model::Element();
}