[PATCH] Fix profile legend strings

Sergey Starosek sergey.starosek at gmail.com
Sat Dec 7 04:11:54 UTC 2013


Use proper case and subscripts for gas names on profile legend.

Signed-off-by: Sergey Starosek <sergey.starosek at gmail.com>
---
 qt-ui/profilegraphics.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index a1085ab..176225a 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -613,7 +613,7 @@ void ProfileGraphicsView::plot_pp_gas_profile()
 			else
 				from = QPointF(SCALEGC(entry->sec, entry->pn2));
 		}
-		createPPLegend(tr("Pn2"),getColor(PN2), legendPos);
+		createPPLegend(trUtf8("pN" UTF8_SUBSCRIPT_2),getColor(PN2), legendPos);
 	}
 
 	if (prefs.pp_graphs.phe) {
@@ -639,7 +639,7 @@ void ProfileGraphicsView::plot_pp_gas_profile()
 			else
 				from = QPointF(SCALEGC(entry->sec, entry->phe));
 		}
-		createPPLegend(tr("PHE"),getColor(PHE), legendPos);
+		createPPLegend(trUtf8("pHe"),getColor(PHE), legendPos);
 	}
 	if (prefs.pp_graphs.po2) {
 		c = getColor(PO2);
@@ -663,7 +663,7 @@ void ProfileGraphicsView::plot_pp_gas_profile()
 			 else
 				from = QPointF(SCALEGC(entry->sec, entry->po2));
 		}
-		createPPLegend(tr("PO2"),getColor(PO2), legendPos);
+		createPPLegend(trUtf8("pO" UTF8_SUBSCRIPT_2),getColor(PO2), legendPos);
 	}
 }
 
-- 
1.8.3.2



More information about the subsurface mailing list