summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoStyleStack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoStyleStack.cpp')
-rw-r--r--lib/kofficecore/KoStyleStack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kofficecore/KoStyleStack.cpp b/lib/kofficecore/KoStyleStack.cpp
index 22799209..9920c289 100644
--- a/lib/kofficecore/KoStyleStack.cpp
+++ b/lib/kofficecore/KoStyleStack.cpp
@@ -258,7 +258,7 @@ bool KoStyleStack::isUserStyle( const TQDomElement& e, const TQString& family )
{
if ( e.attributeNS( m_styleNSURI, "family", TQString() ) != family )
return false;
- const TQDomElement tqparent = e.tqparentNode().toElement();
+ const TQDomElement tqparent = e.parentNode().toElement();
//kdDebug(30003) << k_funcinfo << "tagName=" << e.tagName() << " tqparent-tagName=" << tqparent.tagName() << endl;
return tqparent.localName() == "styles" /*&& tqparent.namespaceURI() == KoXmlNS::office*/;
}