mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Dsl: Fix some pictures resizing
This commit is contained in:
parent
0c2b182647
commit
ac84a73a6d
6
dsl.cc
6
dsl.cc
|
@ -854,6 +854,12 @@ string DslDictionary::nodeToHtml( ArticleDom::Node const & node )
|
|||
{
|
||||
QImage img = QImage::fromData( (unsigned char *) &imgdata.front(),
|
||||
imgdata.size() );
|
||||
|
||||
#ifdef MAKE_EXTRA_TIFF_HANDLER
|
||||
if( img.isNull() && Filetype::isNameOfTiff( filename ) )
|
||||
GdTiff::tiffToQImage( &imgdata.front(), imgdata.size(), img );
|
||||
#endif
|
||||
|
||||
resize = maxPictureWidth > 0
|
||||
&& img.width() > maxPictureWidth;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue