diff --git a/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java b/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
index e059d59..f5b838c 100644
|
a
|
b
|
abstract public class OsmPrimitive extends AbstractPrimitive implements Comparab
|
| 601 | 601 | * Initialized by checkDirectionTagged() |
| 602 | 602 | */ |
| 603 | 603 | static { |
| 604 | | // FIXME: incline=\"-*\" search pattern does not work. |
| 605 | | String reversedDirectionDefault = "oneway=\"-1\" | incline=down | incline=\"-*\""; |
| | 604 | String reversedDirectionDefault = "oneway=\"-1\" | incline=down | incline=\"-.*\""; |
| 606 | 605 | |
| 607 | 606 | String directionDefault = "oneway? | incline=* | aerialway=* | "+ |
| 608 | 607 | "waterway=stream | waterway=river | waterway=canal | waterway=drain | waterway=rapids | "+ |
| … |
… |
abstract public class OsmPrimitive extends AbstractPrimitive implements Comparab
|
| 610 | 609 | "junction=roundabout"; |
| 611 | 610 | |
| 612 | 611 | try { |
| 613 | | reversedDirectionKeys = SearchCompiler.compile(Main.pref.get("tags.reversed_direction", reversedDirectionDefault), false, false); |
| | 612 | reversedDirectionKeys = SearchCompiler.compile(Main.pref.get("tags.reversed_direction", reversedDirectionDefault), false, true); |
| 614 | 613 | } catch (ParseError e) { |
| 615 | 614 | System.err.println("Unable to compile pattern for tags.reversed_direction, trying default pattern: " + e.getMessage()); |
| 616 | 615 | |
| 617 | 616 | try { |
| 618 | | reversedDirectionKeys = SearchCompiler.compile(reversedDirectionDefault, false, false); |
| | 617 | reversedDirectionKeys = SearchCompiler.compile(reversedDirectionDefault, false, true); |
| 619 | 618 | } catch (ParseError e2) { |
| 620 | 619 | throw new AssertionError("Unable to compile default pattern for direction keys: " + e2.getMessage()); |
| 621 | 620 | } |
| 622 | 621 | } |
| 623 | 622 | try { |
| 624 | | directionKeys = SearchCompiler.compile(Main.pref.get("tags.direction", directionDefault), false, false); |
| | 623 | directionKeys = SearchCompiler.compile(Main.pref.get("tags.direction", directionDefault), false, true); |
| 625 | 624 | } catch (ParseError e) { |
| 626 | 625 | System.err.println("Unable to compile pattern for tags.direction, trying default pattern: " + e.getMessage()); |
| 627 | 626 | |
| 628 | 627 | try { |
| 629 | | directionKeys = SearchCompiler.compile(directionDefault, false, false); |
| | 628 | directionKeys = SearchCompiler.compile(directionDefault, false, true); |
| 630 | 629 | } catch (ParseError e2) { |
| 631 | 630 | throw new AssertionError("Unable to compile default pattern for direction keys: " + e2.getMessage()); |
| 632 | 631 | } |