Browse Source

无jira任务 sonar问题修改

research/11.0
Bryant 5 years ago
parent
commit
c8145fabee
  1. 5
      designer-base/src/main/java/com/fr/design/gui/syntax/print/RPrintUtilities.java

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

@ -522,8 +522,9 @@ 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); int reFloat = xOffset + ((ntabs + 1) * tabSizeInPixels);
return reFloat; float ans = reFloat;
return ans;
} }
} }

Loading…
Cancel
Save