diff options
author | Albert Astals Cid <aacid@kde.org> | 2012-10-03 01:21:45 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2012-10-03 01:21:45 +0200 |
commit | 9451b7a61b6dcaa6c4a76f3efda82f1ebd408654 (patch) | |
tree | 9c46d05d6fb0008e0c6a59c594d9ec7b43da39bc | |
parent | 42908e6e72d95cec0f70b202c4b1c23f7e47c2a4 (diff) |
Fix crash when parsing some unknown colorspaces
Can't do csObj->getName if csObj is a dict
-rw-r--r-- | poppler/GfxState.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc index b21c2b03..b8cb0073 100644 --- a/poppler/GfxState.cc +++ b/poppler/GfxState.cc @@ -312,7 +312,7 @@ GfxColorSpace *GfxColorSpace::parse(Object *csObj, Gfx *gfx, int recursion) { } else if (obj1.isName("DeviceCMYK")) { cs = new GfxDeviceCMYKColorSpace(); } else { - error(errSyntaxWarning, -1, "Bad color space '{0:s}'", csObj->getName()); + error(errSyntaxWarning, -1, "Bad color space dict'"); } obj1.free(); } else { |