Fix several compile issues (#261)

Fixed several code issues.  Mostly pedantic compiler warnings.  But also a sign issue exposed by newer compilers (#228, #260)
This commit is contained in:
Jaye Evins
2025-12-06 15:58:38 -05:00
committed by GitHub
parent 44a10fc796
commit b6cac2d208
10 changed files with 41 additions and 18 deletions
+10
View File
@@ -142,6 +142,8 @@ namespace glabels
case Units::PC:
idString = "pc";
break;
default:
idString = "pt";
}
return idString;
@@ -169,6 +171,8 @@ namespace glabels
case Units::PC:
nameString = tr("picas");
break;
default:
nameString = tr("points");
}
return nameString;
@@ -196,6 +200,9 @@ namespace glabels
case Units::PC:
value = 0.01;
break;
default:
value = 0.01;
break;
}
return value;
@@ -223,6 +230,9 @@ namespace glabels
case Units::PC:
digits = 2;
break;
default:
digits = 2;
break;
}
return digits;