From 84d9994324b53da375297241cd1e36eb29fc34a6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 23 Nov 2004 23:45:41 +0000 Subject: [PATCH] Fixed recursive call --- examples/osgphotoalbum/ImageReaderWriter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgphotoalbum/ImageReaderWriter.h b/examples/osgphotoalbum/ImageReaderWriter.h index a86669dd3..b4a155f44 100644 --- a/examples/osgphotoalbum/ImageReaderWriter.h +++ b/examples/osgphotoalbum/ImageReaderWriter.h @@ -37,13 +37,13 @@ class ImageReaderWriter : public osgDB::ReaderWriter std::string insertReference(const std::string& fileName, unsigned int res, float width, float height, bool backPage) { SERIALIZER(); - return insertReference(fileName, res, width, height, backPage); + return const_cast(this)->local_insertReference(fileName, res, width, height, backPage); } virtual ReadResult readNode(const std::string& fileName, const Options* options) const { SERIALIZER(); - return readNode(fileName, options); + return const_cast(this)->local_readNode(fileName, options); }