summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-06-25 18:00:24 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-06-25 18:00:24 (GMT)
commit509496da5e5b38aecbd91a5e20b3d695cbbef775 (patch)
treed1ce681120f6cf7c6aed4ba77feceafcc66cc853 /src/docparser.cpp
parent25a65bed9e3548070b1af401db683bfb0cce9de0 (diff)
downloadDoxygen-509496da5e5b38aecbd91a5e20b3d695cbbef775.zip
Doxygen-509496da5e5b38aecbd91a5e20b3d695cbbef775.tar.gz
Doxygen-509496da5e5b38aecbd91a5e20b3d695cbbef775.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();