mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-08 18:19:42 +00:00
Shut up compiler warning
We know that ceil() returns an integer, although the type is double.
This commit is contained in:
parent
4c6f9d039b
commit
1586f79499
@ -65,9 +65,9 @@ QImage const & GuiImage::image() const
|
||||
unsigned int GuiImage::width() const
|
||||
{
|
||||
#if QT_VERSION >= 0x050000
|
||||
return is_transformed_ ?
|
||||
ceil(transformed_.width() / transformed_.devicePixelRatio()) :
|
||||
ceil(original_.width() / original_.devicePixelRatio());
|
||||
return static_cast<unsigned int>(ceil(is_transformed_ ?
|
||||
(transformed_.width() / transformed_.devicePixelRatio()) :
|
||||
(original_.width() / original_.devicePixelRatio())));
|
||||
#else
|
||||
return is_transformed_ ? transformed_.width() : original_.width();
|
||||
#endif
|
||||
@ -77,9 +77,9 @@ unsigned int GuiImage::width() const
|
||||
unsigned int GuiImage::height() const
|
||||
{
|
||||
#if QT_VERSION >= 0x050000
|
||||
return is_transformed_ ?
|
||||
ceil(transformed_.height() / transformed_.devicePixelRatio()) :
|
||||
ceil(original_.height() / original_.devicePixelRatio());
|
||||
return static_cast<unsigned int>(ceil(is_transformed_ ?
|
||||
(transformed_.height() / transformed_.devicePixelRatio()) :
|
||||
(original_.height() / original_.devicePixelRatio())));
|
||||
#else
|
||||
return is_transformed_ ? transformed_.height() : original_.height();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user