summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2000-12-06 10:20:44 +0000
committerOcke Janssen <oj@openoffice.org>2000-12-06 10:20:44 +0000
commit961dcc56319e3bb18232308171dead33a55fd44c (patch)
treebfe3507b932823d2d5ea543e2218574891f77c30 /svx
parent321c155b72b629bed693d0d72385060ac81d1e78 (diff)
merge
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx25
1 files changed, 14 insertions, 11 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx
index 0dd2d13542cd..c39bfb5ff17f 100644
--- a/svx/source/fmcomp/fmgridcl.cxx
+++ b/svx/source/fmcomp/fmgridcl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmgridcl.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: oj $ $Date: 2000-11-23 12:13:18 $
+ * last change: $Author: oj $ $Date: 2000-12-06 11:20:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -242,6 +242,7 @@
#endif
using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdb;
@@ -1086,17 +1087,19 @@ void FmGridControl::propertyChange(const ::com::sun::star::beans::PropertyChange
const DbGridRowRef& xRow = GetCurrentRow();
// waehrend Positionierung wird kein abgleich der Properties vorgenommen
- if (!xRow.Is() || !CompareBookmark(getDataSource()->getBookmark(), xRow->GetBookmark()))
- return;
- if (evt.PropertyName == FM_PROP_ISMODIFIED)
+ Reference<XPropertySet> xSet(evt.Source,UNO_QUERY);
+ if (xRow.Is() && (::cppu::any2bool(xSet->getPropertyValue(FM_PROP_ISNEW))|| CompareBookmark(getDataSource()->getBookmark(), xRow->GetBookmark())))
{
- // modified or clean ?
- GridRowStatus eStatus = ::comphelper::getBOOL(evt.NewValue) ? GRS_MODIFIED : GRS_CLEAN;
- if (eStatus != xRow->GetStatus())
+ if (evt.PropertyName == FM_PROP_ISMODIFIED)
{
- xRow->SetStatus(eStatus);
- vos::OGuard aGuard( Application::GetSolarMutex() );
- RowModified(GetCurrentPos());
+ // modified or clean ?
+ GridRowStatus eStatus = ::comphelper::getBOOL(evt.NewValue) ? GRS_MODIFIED : GRS_CLEAN;
+ if (eStatus != xRow->GetStatus())
+ {
+ xRow->SetStatus(eStatus);
+ vos::OGuard aGuard( Application::GetSolarMutex() );
+ RowModified(GetCurrentPos());
+ }
}
}
}