diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-09 07:42:36 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-09 07:42:36 +0000 |
commit | c0f738e443f7eb2b3a4c822545ec485f3cea1d88 (patch) | |
tree | 5ab9fa0d1242fe9b0fbc7d6af5cdb6a615f219fd /font_service/services.cpp | |
parent | 53ebb35f1ae99a27b042c68a699cec19029abc69 (diff) |
problems with sorting, colours in wrong order in options
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@37 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'font_service/services.cpp')
-rw-r--r-- | font_service/services.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/font_service/services.cpp b/font_service/services.cpp index c20b3b6..997b42e 100644 --- a/font_service/services.cpp +++ b/font_service/services.cpp @@ -81,8 +81,8 @@ bool operator <(const ColourIDW &id1, const ColourIDW &id2) { bool operator ==(const FontIDW &id1, const FontIDW &id2) {
int db_cmp = strncmp(id1.dbSettingsGroup, id2.dbSettingsGroup, sizeof(id1.dbSettingsGroup));
- if(db_cmp == 0) {
- return true;
+ if(db_cmp != 0) {
+ return false;
}
return wcsncmp(id1.group, id2.group, sizeof(id1.group)) == 0 && id1.order == id2.order && wcsncmp(id1.name, id2.name, sizeof(id1.name)) == 0;
@@ -90,8 +90,8 @@ bool operator ==(const FontIDW &id1, const FontIDW &id2) { bool operator ==(const ColourIDW &id1, const ColourIDW &id2) {
int db_cmp = strncmp(id1.dbSettingsGroup, id2.dbSettingsGroup, sizeof(id1.dbSettingsGroup));
- if(db_cmp == 0) {
- return true;
+ if(db_cmp != 0) {
+ return false;
}
return wcsncmp(id1.group, id2.group, sizeof(id1.group)) == 0 && id1.order == id2.order && wcsncmp(id1.name, id2.name, sizeof(id1.name)) == 0;
|