[fbreader] Fixed a problem with displaying certain images
Some images (those with empty style stack) were erroneously recognized as hidden.
This commit is contained in:
parent
34ed5ac9ce
commit
077e86da62
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,8 @@ XHTMLTagImageAction::XHTMLTagImageAction(const std::string &attributeName) {
|
|||
|
||||
void XHTMLTagImageAction::doAtStart(XHTMLReader &reader, const char **xmlattributes) {
|
||||
// Ignore transparent and hidden images
|
||||
if (!reader.myParseStack.back().opacity || reader.myStyleStack.back().DisplayNone) {
|
||||
if (!reader.myParseStack.back().opacity ||
|
||||
(!reader.myStyleStack.empty() && reader.myStyleStack.back().DisplayNone)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue