Dsl: Fix some pictures resizing

This commit is contained in:
Abs62 2014-02-11 21:27:24 +04:00
parent 0c2b182647
commit ac84a73a6d

6
dsl.cc
View file

@ -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;
}