Revision: 4892
          http://sourceforge.net/p/jump-pilot/code/4892
Author:   michaudm
Date:     2016-04-11 09:27:42 +0000 (Mon, 11 Apr 2016)
Log Message:
-----------
Cleaning, formatting rewriting + 2 small fixes in fr  language file

Modified Paths:
--------------
    core/trunk/ChangeLog
    
core/trunk/src/org/openjump/core/ui/plugin/datastore/WritableDataStoreDataSource.java

Modified: core/trunk/ChangeLog
===================================================================
--- core/trunk/ChangeLog        2016-04-09 14:03:59 UTC (rev 4891)
+++ core/trunk/ChangeLog        2016-04-11 09:27:42 UTC (rev 4892)
@@ -3,6 +3,9 @@
 # 2. make sure that lines break at 80 chars for constricted display situations
 #<-------------------------------- 80 chars 
---------------------------------->#
 
+2016-04-11 mmichaud <m.michael.mich...@orange.fr>
+  * Fix a bug preventing updates with WritableDataSource in some cases
+
 2016-04-09 mmichaud <m.michael.mich...@orange.fr>
   * Improve MakeValid plugin (correction of geometries in place)
 

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/datastore/WritableDataStoreDataSource.java
===================================================================
--- 
core/trunk/src/org/openjump/core/ui/plugin/datastore/WritableDataStoreDataSource.java
       2016-04-09 14:03:59 UTC (rev 4891)
+++ 
core/trunk/src/org/openjump/core/ui/plugin/datastore/WritableDataStoreDataSource.java
       2016-04-11 09:27:42 UTC (rev 4892)
@@ -285,7 +285,7 @@
                 // Attribute changes are updated individually, avoiding to 
replace
                 // values changed concurrently by another client if it is not 
needed
                 for (int i = 0 ; i < schema.getAttributeCount() ; i++) {
-                    if (schema.isAttributeReadOnly(i)) return;
+                    if (schema.isAttributeReadOnly(i)) continue;
                     if (oldFeature.getAttribute(i) == null && 
newFeature.getAttribute(i) != null ||
                         oldFeature.getAttribute(i) != null && 
newFeature.getAttribute(i) == null ||
                         oldFeature.getAttribute(i) != null && 
!oldFeature.getAttribute(i).equals(newFeature.getAttribute(i))) {


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to