mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
fixed lost line attributes in departures
This commit is contained in:
parent
786d29ffc7
commit
f98e87783e
2 changed files with 7 additions and 2 deletions
|
@ -707,7 +707,12 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
if (classChar == 0)
|
||||
throw new IllegalArgumentException();
|
||||
// could check for type consistency here
|
||||
line = newLine(classChar, prodLine.label.substring(1));
|
||||
final String lineName = prodLine.label.substring(1);
|
||||
if (prodLine.attrs != null)
|
||||
line = newLine(classChar, lineName, prodLine.attrs.toArray(new Line.Attr[0]));
|
||||
else
|
||||
line = newLine(classChar, lineName);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -36,7 +36,7 @@ public final class Line implements Serializable, Comparable<Line>
|
|||
final private transient char product; // TODO make true field
|
||||
final public String label;
|
||||
final public Style style;
|
||||
final private Set<Attr> attrs;
|
||||
final public Set<Attr> attrs;
|
||||
|
||||
private static final String PRODUCT_ORDER = "IRSUTBPFC?";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue