Fixed bug in setFeature

Fix contributed by Nick Woolley, nick.woolley@virgin.net
This commit is contained in:
jez_higgins 2002-08-07 08:31:13 +00:00
parent 7eb1b4f295
commit 4d68e4f22e

View file

@ -103,7 +103,7 @@ public:
*/
virtual void setFeature(const stringT& name, bool value)
{
if(parent_)
if(!parent_)
throw SAXNotRecognizedException("Feature: " + name);
parent_->setFeature(name, value);