diff options
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/edit.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index dee721f0893b..85022c9a4d1e 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2957,12 +2957,12 @@ Size Edit::CalcSize( xub_StrLen nChars ) const // ----------------------------------------------------------------------- -xub_StrLen Edit::GetMaxVisChars() const +sal_Int32 Edit::GetMaxVisChars() const { const Window* pW = mpSubEdit ? mpSubEdit : this; - long nOutWidth = pW->GetOutputSizePixel().Width(); - long nCharWidth = GetTextWidth( OUString('x') ); - return nCharWidth ? (xub_StrLen)(nOutWidth/nCharWidth) : 0; + sal_Int32 nOutWidth = pW->GetOutputSizePixel().Width(); + sal_Int32 nCharWidth = GetTextWidth( OUString('x') ); + return nCharWidth ? nOutWidth/nCharWidth : 0; } // ----------------------------------------------------------------------- |