Skip to content

Commit

Permalink
Media Settings node can be named "application/x-ncl-settings" - allow…
Browse files Browse the repository at this point in the history
… it.
  • Loading branch information
rafael2k committed Sep 4, 2023
1 parent 1b49239 commit 5c19c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3929,8 +3929,8 @@ ParserState::pushMedia (ParserState *st, ParserElt *elt)
// case is a new Media
else
{
// case is an MediaSettings
if (type == "application/x-ginga-settings")
// case it is a MediaSettings
if (type == "application/x-ginga-settings" || type == "application/x-ncl-settings")
{
Media *tmpMedia = nullptr;

Expand Down Expand Up @@ -3968,7 +3968,7 @@ ParserState::pushMedia (ParserState *st, ParserElt *elt)
media->addAlias (id, parent);
st->referMapAdd (id, media);
}
// case os other Media type
// case of other Media types
else
{
// case src filled
Expand Down

0 comments on commit 5c19c2c

Please sign in to comment.