summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-02-15 10:29:54 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-02-15 10:29:54 +0100
commit4d7c4b3d2f71e9a6bf47ae2c8de1904c9d079dc9 (patch)
treeb88a46446be81114bc1c010802817d9fcc806e62
parent84de7a8d6356c4222f46b7b8139a4b6ac5f1aa96 (diff)
downloadnextcloud-server-4d7c4b3d2f71e9a6bf47ae2c8de1904c9d079dc9.tar.gz
nextcloud-server-4d7c4b3d2f71e9a6bf47ae2c8de1904c9d079dc9.zip
Markdown: remove redundant int cast
For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--lib/private/Preview/MarkDown.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/MarkDown.php b/lib/private/Preview/MarkDown.php
index 54648ac1837..d809c6a9443 100644
--- a/lib/private/Preview/MarkDown.php
+++ b/lib/private/Preview/MarkDown.php
@@ -126,7 +126,7 @@ class MarkDown extends TXT {
$nextLineStart -= $actualFontSize;
}
} else {
- $y -= (int)$fontSize;
+ $y -= $fontSize;
imagestring($image, 1, $x, $y, $line, $textColor);
$nextLineStart = $fontSize;
}