We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntelliJ IDEA shows that the following line has a potential fault (script can be null and subsequently dereferenced):
script
null
jlatexmath/jlatexmath/src/main/java/org/scilab/forge/jlatexmath/OverUnderBox.java
Line 96 in e1bcaa3
Whether that fault is ever realized I haven't explored. Here's the fix I added to KeenTeX:
public OverUnderBox( Box b, Box d, Box script, float kern, boolean over ) { base = b; del = d; this.script = script; this.kern = kern; this.over = over; // Kerned height. final var kh = script == null ? 0 : script.height + script.depth + kern; // calculate metrics of the box width = b.getWidth(); height = b.height + (over ? d.getWidth() : 0) + (over && script != null ? kh : 0); depth = b.depth + (over ? 0 : d.getWidth()) + (!over && script == null ? 0 : kh); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
IntelliJ IDEA shows that the following line has a potential fault (
script
can benull
and subsequently dereferenced):jlatexmath/jlatexmath/src/main/java/org/scilab/forge/jlatexmath/OverUnderBox.java
Line 96 in e1bcaa3
Whether that fault is ever realized I haven't explored. Here's the fix I added to KeenTeX:
The text was updated successfully, but these errors were encountered: