This commit is contained in:
parent
ce6967e0fc
commit
6d0eecb243
22
scribus-1.3.3.7_string-literal-comparsion.patch
Normal file
22
scribus-1.3.3.7_string-literal-comparsion.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- scribus/colorm.cpp
|
||||||
|
+++ scribus/colorm.cpp
|
||||||
|
@@ -210,7 +210,7 @@
|
||||||
|
ColorListBox::ColorListBox(QWidget * parent, const char * name, WFlags f)
|
||||||
|
: QListBox(parent, name, f)
|
||||||
|
{
|
||||||
|
- if (name == "")
|
||||||
|
+ if (name[0] == 0)
|
||||||
|
setName("ColorListBox");
|
||||||
|
}
|
||||||
|
|
||||||
|
--- scribus/plugins/scriptplugin/cmdcolor.cpp
|
||||||
|
+++ scribus/plugins/scriptplugin/cmdcolor.cpp
|
||||||
|
@@ -147,7 +147,7 @@
|
||||||
|
char *Repl = const_cast<char*>(CommonStrings::None.latin1());
|
||||||
|
if (!PyArg_ParseTuple(args, "es|es", "utf-8", &Name, "utf-8", &Repl))
|
||||||
|
return NULL;
|
||||||
|
- if (Name == "")
|
||||||
|
+ if (Name[0] == 0)
|
||||||
|
{
|
||||||
|
PyErr_SetString(PyExc_ValueError, QObject::tr("Cannot delete a color with an empty name.","python error"));
|
||||||
|
return NULL;
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 8 15:02:42 CET 2007 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
- fixed 'warning: comparsion with string literal' (#233016, #228963)
|
||||||
|
- string-literal-comparsion.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 28 18:52:37 CET 2007 - stbinner@suse.de
|
Sun Jan 28 18:52:37 CET 2007 - stbinner@suse.de
|
||||||
|
|
||||||
|
@ -28,8 +28,9 @@ Suggests: AdobeICCProfiles
|
|||||||
Provides: scribus-short-words
|
Provides: scribus-short-words
|
||||||
Obsoletes: scribus-i18n-de scribus-i18n-en scribus-i18n-fr scribus-short-words
|
Obsoletes: scribus-i18n-de scribus-i18n-en scribus-i18n-fr scribus-short-words
|
||||||
Version: 1.3.3.7
|
Version: 1.3.3.7
|
||||||
Release: 1
|
Release: 7
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
|
Patch: %{name}-%{version}_string-literal-comparsion.patch
|
||||||
URL: http://www.scribus.net/
|
URL: http://www.scribus.net/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Summary: Open Source Page Layout and Desktop Publishing (DTP)
|
Summary: Open Source Page Layout and Desktop Publishing (DTP)
|
||||||
@ -100,6 +101,7 @@ Authors:
|
|||||||
%define prefix /usr
|
%define prefix /usr
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
. /etc/opt/kde3/common_options
|
. /etc/opt/kde3/common_options
|
||||||
@ -168,7 +170,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_prefix}/include/scribus
|
%{_prefix}/include/scribus
|
||||||
|
|
||||||
%changelog -n scribus
|
%changelog
|
||||||
|
* Thu Mar 08 2007 - pgajdos@suse.cz
|
||||||
|
- fixed 'warning: comparsion with string literal' (#233016, #228963)
|
||||||
|
- string-literal-comparsion.patch
|
||||||
* Sun Jan 28 2007 - stbinner@suse.de
|
* Sun Jan 28 2007 - stbinner@suse.de
|
||||||
- Updated to bugfix release 1.3.3.7
|
- Updated to bugfix release 1.3.3.7
|
||||||
* Thu Nov 09 2006 - sbrabec@suse.cz
|
* Thu Nov 09 2006 - sbrabec@suse.cz
|
||||||
|
Loading…
Reference in New Issue
Block a user