[haiku-commits] Re: haiku: hrev48889 - src/apps/haikudepot/model

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 12 Mar 2015 15:07:23 +0100

Hi,

Am 12.03.2015 um 15:02 schrieb waddlesplash@xxxxxxxxx:
diff --git a/src/apps/haikudepot/model/PackageInfo.cpp 
b/src/apps/haikudepot/model/PackageInfo.cpp
index cbb258b..45121b0 100644
--- a/src/apps/haikudepot/model/PackageInfo.cpp
+++ b/src/apps/haikudepot/model/PackageInfo.cpp
@@ -507,6 +507,7 @@ PackageInfo::PackageInfo(const BPackageInfo& info)
        const BStringList& rightsList = info.CopyrightList();
        if (rightsList.CountStrings() > 0)
                publisherName = rightsList.StringAt(0);
+       publisherName.Prepend("© ");

        fPublisher = PublisherInfo(BitmapRef(), publisherName, "", 
publisherURL);
  }

This is not correct, I think. If the rightsList has no entries, the string ends up as "© ", while it is intended that it remains empty in that case. Simply pull the Prepend-call into the if-block.

Best regards,
-Stephan


Other related posts: