qtlite: Fix build with -no-feature-texthtmlparser

Change-Id: I3ffd4612884f57c2d0ff8e9c9c10d0805dd72f6f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Mikhail Svetkin 2019-06-11 15:24:36 +02:00
parent c66c4a844f
commit 910a0aedbb
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ int QTextMarkdownImporter::cbText(int textType, const char *text, unsigned size)
#endif
case MD_TEXT_HTML:
// count how many tags are opened and how many are closed
#if QT_CONFIG(regularexpression)
#if QT_CONFIG(regularexpression) && QT_CONFIG(texthtmlparser)
{
int startIdx = 0;
while ((startIdx = s.indexOf(openingBracket, startIdx)) >= 0) {