mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
cleanup
This commit is contained in:
parent
187aefe725
commit
cf3c2701dd
1 changed files with 2 additions and 2 deletions
|
@ -136,12 +136,12 @@ abstract class ZLTextViewBase extends ZLView {
|
||||||
}
|
}
|
||||||
|
|
||||||
final int getElementDescent(ZLTextElement element) {
|
final int getElementDescent(ZLTextElement element) {
|
||||||
return (element instanceof ZLTextWord) ? myContext.getDescent() : 0;
|
return element instanceof ZLTextWord ? myContext.getDescent() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
final int getWordWidth(ZLTextWord word, int start) {
|
final int getWordWidth(ZLTextWord word, int start) {
|
||||||
return
|
return
|
||||||
(start == 0) ?
|
start == 0 ?
|
||||||
word.getWidth(myContext) :
|
word.getWidth(myContext) :
|
||||||
myContext.getStringWidth(word.Data, word.Offset + start, word.Length - start);
|
myContext.getStringWidth(word.Data, word.Offset + start, word.Length - start);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue