Skip to content

Commit 7f99cbd

Browse files
committed
Fix bug in DPI & BBShiftString to match BB48String to allow 50 pixels rather than 49 when unlicensed.
1 parent c70531a commit 7f99cbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/non-gpl/BBShiftString/BBShiftString.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ int BBShiftStringOutput::Init(Json::Value config) {
255255
int pixels = 50;
256256
int chanCount = 0;
257257
for (auto& a : m_strings[x]->m_virtualStrings) {
258-
if (pixels <= a.pixelCount) {
258+
if (pixels < a.pixelCount) {
259259
a.pixelCount = pixels;
260260
}
261261
pixels -= a.pixelCount;

src/non-gpl/DPIPixels/DPIPixels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int DPIPixelsOutput::Init(Json::Value config) {
197197
int pixels = 50;
198198
int chanCount = 0;
199199
for (auto& a : newString->m_virtualStrings) {
200-
if (pixels <= a.pixelCount) {
200+
if (pixels < a.pixelCount) {
201201
a.pixelCount = pixels;
202202
if (outputList != "") {
203203
outputList += ", ";

0 commit comments

Comments
 (0)