~scribus/scribus/trunk

« back to all changes in this revision

Viewing changes to scribus/documentchecker.cpp

  • Committer: jghali
  • Date: 2020-03-31 14:55:59 UTC
  • Revision ID: svn-v4:11d20701-8431-0410-a711-e3c959e3b870:trunk/Scribus:23551
Make Preflight Verifier less noisy when fill or stroke color is None

Show diffs side-by-side

added added

removed removed

Lines of Context:
441
441
                        if (!(currDoc->layerPrintable(currItem->m_layerID)) && (checkerSettings.ignoreOffLayers))
442
442
                                continue;
443
443
                        itemError.clear();
444
 
                        if ((currItem->hasSoftShadow() || (currItem->fillTransparency() != 0.0) || (currItem->lineTransparency() != 0.0) || (currItem->fillBlendmode() != 0) || (currItem->lineBlendmode() != 0)) && (checkerSettings.checkTransparency))
 
444
                        if (currItem->hasSoftShadow())
445
445
                                itemError.insert(Transparency, 0);
 
446
                        if ((currItem->GrType == 0) && (checkerSettings.checkTransparency))
 
447
                        {
 
448
                                if (currItem->fillColor() != CommonStrings::None)
 
449
                                {
 
450
                                        if ((currItem->fillTransparency() != 0.0) || (currItem->fillBlendmode() != 0))
 
451
                                                itemError.insert(Transparency, 0);
 
452
                                }
 
453
                        }
446
454
                        if ((currItem->GrType != 0) && (checkerSettings.checkTransparency))
447
455
                        {
448
456
                                if (currItem->GrType == 9)
495
503
                                        }
496
504
                                }
497
505
                        }
 
506
                        if ((currItem->GrTypeStroke == 0) && (checkerSettings.checkTransparency))
 
507
                        {
 
508
                                if ((currItem->lineColor() != CommonStrings::None) || !currItem->NamedLStyle.isEmpty())
 
509
                                {
 
510
                                        if ((currItem->lineTransparency() != 0.0) || (currItem->lineBlendmode() != 0))
 
511
                                                itemError.insert(Transparency, 0);
 
512
                                }
 
513
                        }
498
514
                        if ((currItem->GrTypeStroke != 0) && (checkerSettings.checkTransparency))
499
515
                        {
500
516
                                QList<VColorStop*> colorStops = currItem->stroke_gradient.colorStops();