summaryrefslogtreecommitdiff
path: root/misc/celestia/patches
diff options
context:
space:
mode:
authoradam <adam>2004-11-16 14:34:39 +0000
committeradam <adam>2004-11-16 14:34:39 +0000
commita0672f55eaff9673cc56c96f0933814223432415 (patch)
tree0170da681754e82e4228f8f5f1ed066b1c5a3081 /misc/celestia/patches
parent5f86b0068f3e1d50e9c3d5403f059549c58ab9da (diff)
downloadpkgsrc-a0672f55eaff9673cc56c96f0933814223432415.tar.gz
Fix for KDE frontend
Diffstat (limited to 'misc/celestia/patches')
-rw-r--r--misc/celestia/patches/patch-ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/misc/celestia/patches/patch-ac b/misc/celestia/patches/patch-ac
new file mode 100644
index 00000000000..0f33db57dbb
--- /dev/null
+++ b/misc/celestia/patches/patch-ac
@@ -0,0 +1,31 @@
+$NetBSD: patch-ac,v 1.3 2004/11/16 14:34:39 adam Exp $
+
+--- src/celestia/kde/celestialbrowser.cpp.orig 2004-11-15 17:03:29.000000000 +0000
++++ src/celestia/kde/celestialbrowser.cpp
+@@ -138,7 +138,7 @@ void CelestialBrowser::slotRefresh()
+ QString starClass(buf);
+
+ CelListViewItem *starItem = new CelListViewItem(listStars, QString(name),
+- QString::fromUtf8(ReplaceGreekLetterAbbr(name).c_str()), dist, appMag, absMag, starClass);
++ QString(name), dist, appMag, absMag, starClass);
+
+ SolarSystemCatalog::iterator iter = solarSystemCatalog->find(star->getCatalogNumber());
+ if (iter != solarSystemCatalog->end())
+@@ -156,7 +156,7 @@ void CelestialBrowser::slotRefresh()
+ sprintf(buf, " %.2f au", starBodyDist / KM_PER_AU);
+ QString distStarBody(buf);
+
+- CelListViewItem *planetItem = new CelListViewItem(starItem, QString(body->getName()),
++ CelListViewItem *planetItem = new CelListViewItem(starItem, QString(body->getName().c_str()),
+ QString::fromUtf8(body->getName().c_str()),
+ distStarBody, "", "", getClassification(body->getClassification()));
+
+@@ -173,7 +173,7 @@ void CelestialBrowser::slotRefresh()
+ sprintf(buf, " %.0f km", bodySatDist);
+ QString distBodySat(buf);
+
+- new CelListViewItem(planetItem, QString(sat->getName()),
++ new CelListViewItem(planetItem, QString(sat->getName().c_str()),
+ QString::fromUtf8(sat->getName().c_str()),
+ distBodySat, "", "", getClassification(sat->getClassification()));
+