Kaydet (Commit) e0d349f7 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

column position 0 is perfectly valid

On the other hand, column position 1 is not guaranteed to exist.
nCurPos will be BROWSER_INVALID_ID, not 0, in case of error in setting it
üst f727553f
...@@ -1612,8 +1612,8 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, sal_uInt ...@@ -1612,8 +1612,8 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, sal_uInt
} }
// Zur alten Spalte gehen // Zur alten Spalte gehen
if (!nCurPos || nCurPos >= ColCount()) if (nCurPos == BROWSER_INVALIDID || nCurPos >= ColCount())
nCurPos = 1; nCurPos = 0;
// there are rows so go to the selected current column // there are rows so go to the selected current column
if (nRecordCount) if (nRecordCount)
......
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