[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/office/tellico
From: Robby Stephenson <robby () periapsis ! org>
Date: 2009-12-31 19:33:24
Message-ID: 1262288004.098614.17847.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1068300 by rstephenson:
Don't attempt to write out temporary file for linked images
BUG:220645
M +4 -0 ChangeLog
M +8 -4 src/entryview.cpp
--- trunk/extragear/office/tellico/ChangeLog #1068299:1068300
@@ -1,3 +1,7 @@
+2009-12-31 Robby Stephenson <robby@periapsis.org>
+
+ * Fixed adding "link-only" files (BUG #220645).
+
2009-12-22 Robby Stephenson <robby@periapsis.org>
* Updated CrossRef data source to allow authentication via email address.
--- trunk/extragear/office/tellico/src/entryview.cpp #1068299:1068300
@@ -29,6 +29,7 @@
#include "translators/tellicoxmlexporter.h"
#include "collection.h"
#include "images/imagefactory.h"
+#include "images/imageinfo.h"
#include "tellico_kernel.h"
#include "tellico_utils.h"
#include "core/filehandler.h"
@@ -166,10 +167,13 @@
if(id.isEmpty()) {
continue;
}
- if(Data::Document::self()->allImagesOnDisk()) {
- ImageFactory::writeCachedImage(id, ImageFactory::cacheDir());
- } else {
- ImageFactory::writeCachedImage(id, ImageFactory::TempDir);
+ // only write out image if it's not linked only
+ if(!ImageFactory::imageInfo(id).linkOnly) {
+ if(Data::Document::self()->allImagesOnDisk()) {
+ ImageFactory::writeCachedImage(id, ImageFactory::cacheDir());
+ } else {
+ ImageFactory::writeCachedImage(id, ImageFactory::TempDir);
+ }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic