mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
fix ambigous 'else' in Render::load
This commit is contained in:
parent
560bcf7f32
commit
9dbfabc05f
@ -734,20 +734,26 @@ void Render::load(const QString & path, const ComicDB & comicDB)
|
||||
for(int i = 0; i < filters.count(); i++)
|
||||
{
|
||||
if(typeid(*filters[i]) == typeid(BrightnessFilter))
|
||||
{
|
||||
if(comicDB.info.brightness == -1)
|
||||
filters[i]->setLevel(0);
|
||||
else
|
||||
filters[i]->setLevel(comicDB.info.brightness);
|
||||
}
|
||||
if(typeid(*filters[i]) == typeid(ContrastFilter))
|
||||
{
|
||||
if(comicDB.info.contrast == -1)
|
||||
filters[i]->setLevel(100);
|
||||
else
|
||||
filters[i]->setLevel(comicDB.info.contrast);
|
||||
}
|
||||
if(typeid(*filters[i]) == typeid(GammaFilter))
|
||||
{
|
||||
if(comicDB.info.gamma == -1)
|
||||
filters[i]->setLevel(100);
|
||||
else
|
||||
filters[i]->setLevel(comicDB.info.gamma);
|
||||
}
|
||||
}
|
||||
createComic(path);
|
||||
if (comic!=0)
|
||||
|
Loading…
Reference in New Issue
Block a user