summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-01-25 19:01:52 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2015-01-25 18:18:16 +0000
commit3d12bdfb243e1efbc368d95d3e42e7d713b63b45 (patch)
treed76e3dd8e69eca71b592b49547398fa6f660b56d /dbaccess
parent294cea0f5b84e6d9e0b508e0c181c77f526264ae (diff)
when beforeFirst/afterLast, there is no value, so none to notify
Change-Id: I599f8efae98e7cc7f65f47cec7f342c8b3dc8282 Reviewed-on: https://gerrit.libreoffice.org/14177 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetBase.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx
index 3dbd6a0563b7..53be639656c2 100644
--- a/dbaccess/source/core/api/RowSetBase.cxx
+++ b/dbaccess/source/core/api/RowSetBase.cxx
@@ -1055,6 +1055,12 @@ void ORowSetBase::setCurrentRow( bool _bMoved, bool _bDoNotify, const ORowSetRow
ORowSetRow rRow = (*m_aCurrentRow);
OSL_ENSURE(rRow.is() ,"Invalid size of vector!");
#endif
+
+ // notification order
+ // - column values
+ if ( _bDoNotify )
+ firePropertyChange(_rOldValues);
+
}
else
{
@@ -1064,11 +1070,6 @@ void ORowSetBase::setCurrentRow( bool _bMoved, bool _bDoNotify, const ORowSetRow
m_aCurrentRow.setBookmark(m_aBookmark);
}
- // notification order
- // - column values
- if ( _bDoNotify )
- firePropertyChange(_rOldValues);
-
// TODO: can this be done before the notifications?
if(!(m_bBeforeFirst || m_bAfterLast) && !m_aCurrentRow.isNull() && m_aCurrentRow->is() && m_aCurrentRow != m_pCache->getEnd())
m_aOldRow->setRow(new ORowSetValueVector( *(*m_aCurrentRow) ));