Read from the correct variable
Fixes crash on KDE bug 249586
diff --git a/poppler/Movie.cc b/poppler/Movie.cc
index 42bc788..3e764ac 100644
--- a/poppler/Movie.cc
+++ b/poppler/Movie.cc
@@ -6,6 +6,7 @@
// Hugo Mercier <hmercier31[at]gmail.com> (c) 2008
// Pino Toscano <pino@kde.org> (c) 2008
// Carlos Garcia Campos <carlosgc@gnome.org> (c) 2010
+// Albert Astals Cid <aacid@kde.org> (c) 2010
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -229,7 +230,7 @@
if (poster.isRef() || poster.isStream()) {
showPoster = gTrue;
} else if (poster.isBool()) {
- showPoster = obj1.getBool();
+ showPoster = poster.getBool();
poster.free();
} else {
poster.free();