Minor bug fixes
- model::Db::lookupPaperNameFromId() bad if-else-if - model::StrUtil::formatFraction missing arg in QString - Added unit tests for StrUtil
This commit is contained in:
+5
-5
@@ -231,14 +231,14 @@ namespace glabels
|
||||
{
|
||||
if ( !id.isNull() && !id.isEmpty() )
|
||||
{
|
||||
if ( id == "roll" )
|
||||
{
|
||||
return tr("Roll");
|
||||
}
|
||||
else
|
||||
if ( id == "other" )
|
||||
{
|
||||
return tr("Other");
|
||||
}
|
||||
else if ( id == "roll" )
|
||||
{
|
||||
return tr("Roll");
|
||||
}
|
||||
|
||||
const Paper *paper = lookupPaperFromId( id );
|
||||
if ( paper != nullptr )
|
||||
|
||||
Reference in New Issue
Block a user