Skip to content

Commit

Permalink
Merge remote-tracking branch 'bvesco/gh-33' into candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
bvesco committed Mar 20, 2011
2 parents 144bea7 + f75bfdb commit d05d912
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions WDL/IPlug/IPlugBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@ int GetDecimalVersion(int version)

void GetVersionStr(int version, char* str)
{
int ver, rmaj, rmin;
GetVersionParts(version, &ver, &rmaj, &rmin);
//if (rmin) {
// sprintf(str, "v%d.%d.%d", ver, rmaj, rmin);
//}
//else
//if (rmaj) {
sprintf(str, "v%d.%02d", ver, rmaj);
//}
//else {
// sprintf(str, "v%d", ver);
//}
int ver, rmaj, rmin;
GetVersionParts(version, &ver, &rmaj, &rmin);
if (rmin){
sprintf(str, "v%d.%d.%d", ver, rmaj, rmin);
}
else{
sprintf(str, "v%d.%d", ver, rmaj);
}
}

IPlugBase::IPlugBase(int nParams, const char* channelIOStr, int nPresets,
Expand Down

0 comments on commit d05d912

Please sign in to comment.