[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-10-14 13:04:28
Message-ID: 20101014130428.F3FA1AC895 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1185878 by aseigo:
fd is 0 by this point
M +3 -2 framesvg.cpp
--- trunk/KDE/kdelibs/plasma/framesvg.cpp #1185877:1185878
@@ -84,7 +84,8 @@
if (!fd) {
// we need to replace our frame, start by looking in the frame cache
- const QString key = d->cacheId(fd, d->prefix);
+ FrameData *oldFd = d->frames[d->prefix];
+ const QString key = d->cacheId(oldFd, d->prefix);
fd = FrameSvgPrivate::s_sharedFrames.value(key);
if (fd) {
@@ -96,7 +97,7 @@
} else {
// nothing exists for us in the cache, so create a new FrameData based
// on the old one
- fd = new FrameData(*d->frames[d->prefix], this);
+ fd = new FrameData(*oldFd, this);
}
d->frames.insert(d->prefix, fd);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic