1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
Description: Fix "format not a string" error
Author: Anton Gladky <gladk@debian.org>
Last-Update: 2016-11-05
--- sumo-0.28.0+dfsg1.orig/src/netedit/GNEViewNet.cpp
+++ sumo-0.28.0+dfsg1/src/netedit/GNEViewNet.cpp
@@ -1213,7 +1213,7 @@ GNEViewNet::restrictLane(SUMOVehicleClas
// Throw warning dialog if there hare multiple lanes selected in the same edge
if (mapOfEdgesAndLanes.size() != lanes.size()) {
FXMessageBox::information(getApp(), MBOX_OK,
- ("Multiple lane in the same edge selected"),
+ ("Multiple lane in the same edge selected"), "%s",
("There are selected lanes that belong to the same edge.\n Only one lane pro edge will be restricted for " + toString(vclass) + ".").c_str());
}
// If we handeln a set of lanes
@@ -1228,8 +1228,8 @@ GNEViewNet::restrictLane(SUMOVehicleClas
}
// if all edges parent own a Sidewalk, stop function
if (counter == (int)mapOfEdgesAndLanes.size()) {
- FXMessageBox::information(getApp(), MBOX_OK,
- ("Set vclass for " + toString(vclass) + " to selected lanes").c_str(),
+ FXMessageBox::information(getApp(), MBOX_OK, "%s",
+ ("Set vclass for " + toString(vclass) + " to selected lanes").c_str(), "%s",
("All lanes own already another lane in the same edge with a restriction for " + toString(vclass)).c_str());
return 0;
} else {
@@ -1295,8 +1295,8 @@ GNEViewNet::addRestrictedLane(SUMOVehicl
}
// if all lanes own a Sidewalk, stop function
if (counter == (int)setOfEdges.size()) {
- FXMessageBox::information(getApp(), MBOX_OK,
- ("Add vclass for" + toString(vclass) + " to selected lanes").c_str(),
+ FXMessageBox::information(getApp(), MBOX_OK, "%s",
+ ("Add vclass for" + toString(vclass) + " to selected lanes").c_str(), "%s",
("All lanes own already another lane in the same edge with a restriction for " + toString(vclass)).c_str());
return 0;
} else {
@@ -1362,8 +1362,8 @@ GNEViewNet::removeRestrictedLane(SUMOVeh
}
// if all lanes don't own a Sidewalk, stop function
if (counter == 0) {
- FXMessageBox::information(getApp(), MBOX_OK,
- ("Remove vclass for " + toString(vclass) + " to selected lanes").c_str(),
+ FXMessageBox::information(getApp(), MBOX_OK, "%s",
+ ("Remove vclass for " + toString(vclass) + " to selected lanes").c_str(), "%s",
("Selected lanes and edges haven't a restriction for " + toString(vclass)).c_str());
return 0;
} else {
|