tdf#75280: Convert inappropriate use of sal_uIntPtr to better integer types
Change-Id: Ifa5991296bda4c4b3f86f01c3713b5a5f8f9acb5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87471 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
This commit is contained in:
committed by
Muhammet Kara
parent
c3ff4d1bc3
commit
09a2432c59
@@ -143,7 +143,7 @@ class FontPrevWin_Impl
|
||||
bool mbDelPrinter;
|
||||
|
||||
Reference <XBreakIterator> mxBreak;
|
||||
std::vector<sal_uIntPtr> maTextWidth;
|
||||
std::vector<long> maTextWidth;
|
||||
std::deque<sal_Int32> maScriptChg;
|
||||
std::vector<sal_uInt16> maScriptType;
|
||||
SvxFont maCJKFont;
|
||||
@@ -327,7 +327,7 @@ Size FontPrevWin_Impl::CalcTextSize(vcl::RenderContext& rRenderContext, OutputDe
|
||||
((nScript == css::i18n::ScriptType::COMPLEX) ?
|
||||
maCTLFont :
|
||||
rInFont);
|
||||
sal_uIntPtr nWidth = rFont.GetTextSize(_pPrinter, maText, nStart, nEnd - nStart).Width();
|
||||
long nWidth = rFont.GetTextSize(_pPrinter, maText, nStart, nEnd - nStart).Width();
|
||||
if (nIdx >= maTextWidth.size())
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user