diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-18 05:55:30 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-18 05:55:30 +0000 |
commit | e88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184 (patch) | |
tree | 89eb4ff7f56e2f0a94abc9df2aae7ed9c97aecc9 | |
parent | 2de1f0b1e30cfe1902f7183d9421f568cec7b7be (diff) | |
download | tdelibs-e88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184.tar.gz tdelibs-e88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184.zip |
Hopefully fixed crash when adding custom color in kpalette
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1164953 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | kdecore/kpalette.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kdecore/kpalette.cpp b/kdecore/kpalette.cpp index 6dc1800f1..49cacc79b 100644 --- a/kdecore/kpalette.cpp +++ b/kdecore/kpalette.cpp @@ -65,10 +65,10 @@ KPalette::KPalette(const TQString &name) // Read first line // Expected "GIMP Palette" - if (paletteFile.readLine(const_cast<char *>(line.ascii()), maxLength) == -1) return; + if (paletteFile.readLine(line, maxLength) == -1) return; if (line.find(" Palette") == -1) return; - while( paletteFile.readLine(const_cast<char *>(line.ascii()), maxLength) != -1) + while( paletteFile.readLine(line, maxLength) != -1) { if (line[0] == '#') { |