[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kofficecore
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2004-04-01 21:30:41
Message-ID: 20040401213041.4C60299E0 () office ! kde ! org
[Download RAW message or body]
CVS commit by goutte:
Fix saving of picture
(Reason:: in C++ the keyword else relates to the innermost if .)
CCMAIL:78831-close@kde.org
M +6 -2 koPictureCollection.cc 1.17
--- koffice/lib/kofficecore/koPictureCollection.cc #1.16:1.17
@@ -1,6 +1,6 @@
/* This file is part of the KDE project
Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
- Copyright (c) 2001 David Faure <faure@kde.org>
- Copyright (C) 2002 Nicolas GOUTTE <goutte@kde.org>
+ Copyright (c) 2001, 2004 David Faure <faure@kde.org>
+ Copyright (C) 2002, 2004 Nicolas GOUTTE <goutte@kde.org>
This library is free software; you can redistribute it and/or
@@ -170,9 +170,13 @@ bool KoPictureCollection::saveToStoreInt
KoStoreDevice dev(store);
if (koffice11)
+ {
if ( !c.saveAsKOffice1Dot1(&dev) )
return false;
+ }
else
+ {
if ( ! c.save(&dev) )
return false; // e.g. bad image?
+ }
if ( !store->close() )
return false; // e.g. disk full
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic