Skip to content

Commit

Permalink
Fix bug in DPI & BBShiftString to match BB48String to allow 50 pixels…
Browse files Browse the repository at this point in the history
… rather than 49 when unlicensed.
  • Loading branch information
darylc committed Jan 1, 2025
1 parent c70531a commit 7f99cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/non-gpl/BBShiftString/BBShiftString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ int BBShiftStringOutput::Init(Json::Value config) {
int pixels = 50;
int chanCount = 0;
for (auto& a : m_strings[x]->m_virtualStrings) {
if (pixels <= a.pixelCount) {
if (pixels < a.pixelCount) {
a.pixelCount = pixels;
}
pixels -= a.pixelCount;
Expand Down
2 changes: 1 addition & 1 deletion src/non-gpl/DPIPixels/DPIPixels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int DPIPixelsOutput::Init(Json::Value config) {
int pixels = 50;
int chanCount = 0;
for (auto& a : newString->m_virtualStrings) {
if (pixels <= a.pixelCount) {
if (pixels < a.pixelCount) {
a.pixelCount = pixels;
if (outputList != "") {
outputList += ", ";
Expand Down

0 comments on commit 7f99cbd

Please sign in to comment.