Ignore:
Timestamp:
2024-05-13T20:34:55+02:00 (4 months ago)
Author:
taylor.smock
Message:

Fix #4142: Track fully downloaded objects (patch by stoecker, GerdP, and myself)

The serialization move from PrimitiveData to AbstractPrimitive should be
reverted prior to 24.05 (see #23677).

The serialization move was required since we want to ensure that all downstream
users of AbstractPrimitive were not using the flags field, which was done by
making the field private instead of protected. They may still be using that
field (via updateFlags) which would not be caught by compile-time or runtime
errors.

Additionally, a good chunk of common functionality was moved up from
OsmPrimitive, even though much of it wasn't useful for PrimitiveData.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java

    r18208 r19078  
    285285            final Node[] endnodes = {w.firstNode(), w.lastNode()};
    286286            for (Node n : endnodes) {
    287                 if (!n.isNew() && n.isOutsideDownloadArea() && !endNodesOutside.add(n)) {
    288                     new Notification(tr("Combine ways refused<br>" + "(A shared node is outside of the download area)"))
     287                if (!n.isNew() && !n.isReferrersDownloaded() && !endNodesOutside.add(n)) {
     288                    new Notification(tr("Combine ways refused<br>" + "(A shared node may have additional referrers)"))
    289289                            .setIcon(JOptionPane.INFORMATION_MESSAGE).show();
    290290                    return;
Note: See TracChangeset for help on using the changeset viewer.