[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml/rendering
From:       George Staikos <staikos () kde ! org>
Date:       2005-03-17 13:58:58
Message-ID: 20050317135858.67FCB18228 () office ! kde ! org
[Download RAW message or body]

CVS commit by staikos: 

embed can be null of course


  M +2 -2      render_frames.cpp   1.197


--- kdelibs/khtml/rendering/render_frames.cpp  #1.196:1.197
@@ -663,5 +663,5 @@ void RenderPartObject::updateWidget()
           if (!objbase->getAttribute(ATTR_WIDTH).isEmpty())
               params.append( QString::fromLatin1("WIDTH=\"%1\"").arg( \
                objbase->getAttribute(ATTR_WIDTH).string() ) );
-          else if (!embed->getAttribute(ATTR_WIDTH).isEmpty()) {
+          else if (embed && !embed->getAttribute(ATTR_WIDTH).isEmpty()) {
               params.append( QString::fromLatin1("WIDTH=\"%1\"").arg( \
                embed->getAttribute(ATTR_WIDTH).string() ) );
               objbase->setAttribute(ATTR_WIDTH, embed->getAttribute(ATTR_WIDTH));
@@ -669,5 +669,5 @@ void RenderPartObject::updateWidget()
           if (!objbase->getAttribute(ATTR_HEIGHT).isEmpty())
               params.append( QString::fromLatin1("HEIGHT=\"%1\"").arg( \
                objbase->getAttribute(ATTR_HEIGHT).string() ) );
-          else if (!embed->getAttribute(ATTR_HEIGHT).isEmpty()) {
+          else if (embed && !embed->getAttribute(ATTR_HEIGHT).isEmpty()) {
               params.append( QString::fromLatin1("HEIGHT=\"%1\"").arg( \
                embed->getAttribute(ATTR_HEIGHT).string() ) );
               objbase->setAttribute(ATTR_HEIGHT, embed->getAttribute(ATTR_HEIGHT));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic