X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fpanel_io.cxx;h=ecd6efd89a02c674463529642c5899e92bbb6ef2;hb=b3d59ed5636cc416f83db0fd5f2698759af944fb;hp=7ef58b6e1522ed393a9e1d2e0a34abeef30b4f41;hpb=6f9987aae701938f3064dde63f713b8331827706;p=flightgear.git diff --git a/src/Cockpit/panel_io.cxx b/src/Cockpit/panel_io.cxx index 7ef58b6e1..ecd6efd89 100644 --- a/src/Cockpit/panel_io.cxx +++ b/src/Cockpit/panel_io.cxx @@ -839,10 +839,9 @@ fgReadPanel (istream &input) FGPanel * fgReadPanel (const string &relative_path) { - SGPath path(globals->get_fg_root()); - path.append(relative_path); + SGPath path = globals->resolve_aircraft_path(relative_path); SGPropertyNode root; - + try { readProperties(path.str(), &root); } catch (const sg_exception &e) {