summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-06-25 18:00:24 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-06-25 18:00:24 (GMT)
commit17c14fb5230cfc532577c32df1d10223534392d8 (patch)
treed1ce681120f6cf7c6aed4ba77feceafcc66cc853 /src/docparser.cpp
parent80108293f1f4808c02d28d2d1620563437433a56 (diff)
downloadDoxygen-17c14fb5230cfc532577c32df1d10223534392d8.zip
Doxygen-17c14fb5230cfc532577c32df1d10223534392d8.tar.gz
Doxygen-17c14fb5230cfc532577c32df1d10223534392d8.tar.bz2
Release-1.3.2-20030625
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 7d26e04..abf930a 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -1923,6 +1923,7 @@ void DocImage::parse()
g_nodeStack.push(this);
DBG(("DocImage::parse() start\n"));
+ // parse title
doctokenizerYYsetStateTitle();
int tok;
while ((tok=doctokenizerYYlex()))
@@ -1946,26 +1947,24 @@ void DocImage::parse()
}
}
}
- if (!m_children.isEmpty())
+ // parse size attributes
+ tok=doctokenizerYYlex();
+ while (tok==TK_WORD) // there are values following the title
{
- tok=doctokenizerYYlex();
- while (tok==TK_WORD) // there are values following the title
+ if (g_token->name=="width")
{
- if (g_token->name=="width")
- {
- m_width=g_token->chars;
- }
- else if (g_token->name=="height")
- {
- m_height=g_token->chars;
- }
- else
- {
- warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unknown option %s after image title",
- g_token->name.data());
- }
- tok=doctokenizerYYlex();
+ m_width=g_token->chars;
+ }
+ else if (g_token->name=="height")
+ {
+ m_height=g_token->chars;
}
+ else
+ {
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unknown option %s after image title",
+ g_token->name.data());
+ }
+ tok=doctokenizerYYlex();
}
doctokenizerYYsetStatePara();