diff options
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r-- | sc/source/core/data/table3.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index 61aa6373b6b8..73a514b87a16 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -2161,7 +2161,7 @@ bool ScTable::CreateStarQuery(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 { bFound = false; GetUpperCellString(nCol1 + 2, nRow, aCellStr); - if (aCellStr[0] == '<') + if (aCellStr.startsWith("<")) { if (aCellStr[1] == '>') rEntry.eOp = SC_NOT_EQUAL; @@ -2170,14 +2170,14 @@ bool ScTable::CreateStarQuery(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 else rEntry.eOp = SC_LESS; } - else if (aCellStr[0] == '>') + else if (aCellStr.startsWith(">")) { if (aCellStr[1] == '=') rEntry.eOp = SC_GREATER_EQUAL; else rEntry.eOp = SC_GREATER; } - else if (aCellStr[0] == '=') + else if (aCellStr.startsWith("=")) rEntry.eOp = SC_EQUAL; } |