Skip to content

Commit 12b6001

Browse files
committed
Fixed bug in padding
1 parent 6edb3f0 commit 12b6001

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/prop/multi/Padding.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ namespace lsp
357357
ssize_t hor = (sValue.nLeft + sValue.nRight) * scale;
358358
ssize_t vert = (sValue.nTop + sValue.nBottom) * scale;
359359
dst->nLeft = src->nLeft;
360+
dst->nTop = src->nTop;
360361
dst->nHeight = src->nHeight;
361362
dst->nWidth = lsp_max(0, src->nWidth + hor );
362363
dst->nHeight = lsp_max(0, src->nHeight + vert);
@@ -368,6 +369,7 @@ namespace lsp
368369
ssize_t hor = (sValue.nLeft + sValue.nRight) * scale;
369370
ssize_t vert = (sValue.nTop + sValue.nBottom) * scale;
370371
dst->nLeft = src->nLeft;
372+
dst->nTop = src->nTop;
371373
dst->nHeight = src->nHeight;
372374
dst->nWidth = lsp_max(0, src->nWidth - hor );
373375
dst->nHeight = lsp_max(0, src->nHeight - vert);

0 commit comments

Comments
 (0)