Author: jghali
Date: Fri Sep 7 20:57:03 2018
New Revision: 22674
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22674
Log:
Relax preflight verifier checks for empty text frames on PDF forms fields such
as check boxes and radio buttons
Modified:
trunk/Scribus/scribus/documentchecker.cpp
Modified: trunk/Scribus/scribus/documentchecker.cpp
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22674&path=/trunk/Scribus/scribus/documentchecker.cpp
==============================================================================
--- trunk/Scribus/scribus/documentchecker.cpp (original)
+++ trunk/Scribus/scribus/documentchecker.cpp Fri Sep 7 20:57:03 2018
@@ -366,8 +366,11 @@
if (checkerSettings.checkEmptyTextFrames &&
(currItem->itemText.length() == 0 || currItem->frameUnderflows()))
{
- bool isLinkAnnotation =
(currItem->isAnnotation() && (currItem->annotation().Type() ==
Annotation::Link));
- if (!isLinkAnnotation)
+ bool isEmptyAnnotation =
(currItem->isAnnotation() &&
+
((currItem->annotation().Type() == Annotation::Link) ||
+
(currItem->annotation().Type() == Annotation::Checkbox) ||
+
(currItem->annotation().Type() == Annotation::RadioButton)));
+ if (!isEmptyAnnotation)
itemError.insert(EmptyTextFrame, 0);
}
@@ -611,8 +614,11 @@
if (checkerSettings.checkEmptyTextFrames &&
(currItem->itemText.length()==0 || currItem->frameUnderflows()))
{
- bool isLinkAnnotation =
(currItem->isAnnotation() && (currItem->annotation().Type() ==
Annotation::Link));
- if (!isLinkAnnotation)
+ bool isEmptyAnnotation =
(currItem->isAnnotation() &&
+
((currItem->annotation().Type() == Annotation::Link) ||
+
(currItem->annotation().Type() == Annotation::Checkbox) ||
+
(currItem->annotation().Type() == Annotation::RadioButton)));
+ if (!isEmptyAnnotation)
itemError.insert(EmptyTextFrame, 0);
}
_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit