Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
770fa7d4
Commit
770fa7d4
authored
Nov 06, 2022
by
Volker Krause
Browse files
Be more tolerant to creative positioning of RCT2 departure station names
Makes international CD tickets show up correctly.
parent
977bdfc7
Pipeline
#262809
passed with stage
in 8 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/uic9183/rct2ticket.cpp
View file @
770fa7d4
...
...
@@ -216,7 +216,8 @@ static QString rct2Clean(const QString &s)
QString
Rct2Ticket
::
outboundDepartureStation
()
const
{
return
type
()
!=
RailPass
?
rct2Clean
(
d
->
layout
.
text
(
6
,
13
,
17
,
1
).
trimmed
())
:
QString
();
// 6, 13, 17, 1 would be according to spec, but why stick to that...
return
type
()
!=
RailPass
?
rct2Clean
(
d
->
layout
.
text
(
6
,
12
,
18
,
1
).
trimmed
())
:
QString
();
}
QString
Rct2Ticket
::
outboundArrivalStation
()
const
...
...
@@ -241,7 +242,8 @@ QDateTime Rct2Ticket::returnArrivalTime() const
QString
Rct2Ticket
::
returnDepartureStation
()
const
{
return
type
()
!=
RailPass
?
rct2Clean
(
d
->
layout
.
text
(
7
,
13
,
17
,
1
).
trimmed
())
:
QString
();
// 7, 13, 17, 1 would be according to spec, but you can guess by now how well that is followed...
return
type
()
!=
RailPass
?
rct2Clean
(
d
->
layout
.
text
(
7
,
12
,
18
,
1
).
trimmed
())
:
QString
();
}
QString
Rct2Ticket
::
returnArrivalStation
()
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment