Kaydet (Commit) 13274068 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

only access first element if vector is not empty, fdo#55734

Change-Id: I60db486195e7216968dc8c7c7c0c79fb7e8c1b88
üst 82bba1a2
......@@ -455,7 +455,9 @@ bool ScDBData::HasQueryParam() const
bool ScDBData::HasSortParam() const
{
return mpSortParam && mpSortParam->maKeyState[0].bDoSort;
return mpSortParam &&
!mpSortParam->maKeyState.empty() &&
mpSortParam->maKeyState[0].bDoSort;
}
bool ScDBData::HasSubTotalParam() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment