J2K registerInspectionBasedProcessing: use correct target for applyTo

This commit is contained in:
Mikhail Glukhikh
2017-12-20 21:07:09 +03:00
parent 5a1a35bb35
commit 221aac9820
@@ -190,7 +190,7 @@ object J2KPostProcessingRegistrar {
if (!isApplicable(tElement)) return null
return {
if (isApplicable(tElement)) { // check availability of the inspection again because something could change
inspection.applyTo(element)
inspection.applyTo(inspection.inspectionTarget(tElement))
}
}
}