Browse Source

Merge pull request #1216 in DESIGN/design from ~BRYANT/design:feature/10.0 to feature/10.0

* commit '298f851c20e2ea1d9d0dfffa0be824db412cac2b':
  无jira任务 sonar问题修改
  无jira任务 sonar问题修改
research/11.0
Bryant 5 years ago
parent
commit
33997f95bb
  1. 4
      designer-base/src/main/java/com/fr/design/gui/syntax/print/RPrintUtilities.java

4
designer-base/src/main/java/com/fr/design/gui/syntax/print/RPrintUtilities.java

@ -522,8 +522,8 @@ public abstract class RPrintUtilities {
return x; return x;
int tabSizeInPixels = tabSizeInSpaces * fm.charWidth(' '); int tabSizeInPixels = tabSizeInSpaces * fm.charWidth(' ');
int ntabs = (((int) x) - xOffset) / tabSizeInPixels; int ntabs = (((int) x) - xOffset) / tabSizeInPixels;
float reFloat = xOffset + ((ntabs + 1) * tabSizeInPixels); double reFloat = (double) xOffset + (double) ((ntabs + 1) * tabSizeInPixels);
return reFloat; return (float) reFloat;
} }
} }

Loading…
Cancel
Save