summaryrefslogtreecommitdiff
path: root/svtools/source/svhtml
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-03-03 22:16:50 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-03-08 10:13:25 +0100
commitdcc977b33960f2fbf8fec07f3f8a00a2cae4900e (patch)
tree884bd88c037b104f55905353e3ac7d2b4561c779 /svtools/source/svhtml
parentc91a7415a8dd8036fb03a074bc84120d60e91e8c (diff)
switch: ungroup two case which perform different operations
Change-Id: I099501a596ebeb2820192d08de80eae342191bb7
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r--svtools/source/svhtml/parhtml.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index b33d3207af6d..f54c7415253b 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -355,14 +355,19 @@ int HTMLParser::FilterToken( int nToken )
bIsInBody = true;
bIsInHeader = false;
break;
+
case HTML_HEAD_ON:
bIsInHeader = true;
break;
case HTML_BODY_ON:
+ bIsInHeader = false;
+ bIsInBody = true;
+ break;
+
case HTML_FRAMESET_ON:
bIsInHeader = false;
- bIsInBody = HTML_BODY_ON == nToken;
+ bIsInBody = false;
break;
case HTML_BODY_OFF: