|
|
@ -89,6 +89,7 @@ import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
import com.fr.report.poly.PolyWorkSheet; |
|
|
|
import com.fr.report.poly.PolyWorkSheet; |
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
import com.fr.report.worksheet.WorkSheet; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
|
|
|
import com.fr.stable.AssistUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.module.Module; |
|
|
|
import com.fr.stable.module.Module; |
|
|
@ -469,7 +470,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
double creatorWidth = blockCreator.getEditorBounds().width; |
|
|
|
double creatorWidth = blockCreator.getEditorBounds().width; |
|
|
|
double areaHeight = polyDezi.polyArea.getHeight(); |
|
|
|
double areaHeight = polyDezi.polyArea.getHeight(); |
|
|
|
double areaWidth = polyDezi.polyArea.getWidth(); |
|
|
|
double areaWidth = polyDezi.polyArea.getWidth(); |
|
|
|
if (creatorWidth == 0 || creatorHeight == 0) { |
|
|
|
if(AssistUtils.equals(creatorWidth,0) || AssistUtils.equals(creatorHeight,0)){ |
|
|
|
return resolution; |
|
|
|
return resolution; |
|
|
|
} |
|
|
|
} |
|
|
|
double time = (areaHeight / creatorHeight) < (areaWidth / creatorWidth) ? (areaHeight / creatorHeight) : (areaWidth / creatorWidth); |
|
|
|
double time = (areaHeight / creatorHeight) < (areaWidth / creatorWidth) ? (areaHeight / creatorHeight) : (areaWidth / creatorWidth); |
|
|
@ -486,7 +487,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> { |
|
|
|
int row = reportPane.getSelection().getSelectedRows()[0]; |
|
|
|
int row = reportPane.getSelection().getSelectedRows()[0]; |
|
|
|
double rowLength = reportPane.getSelection().getSelectedRows().length; |
|
|
|
double rowLength = reportPane.getSelection().getSelectedRows().length; |
|
|
|
double rowExtent = reportPane.getGrid().getVerticalExtent(); |
|
|
|
double rowExtent = reportPane.getGrid().getVerticalExtent(); |
|
|
|
if (columnLength == 0 || rowLength == 0) { |
|
|
|
if(AssistUtils.equals(columnLength,0) || AssistUtils.equals(rowLength,0)){ |
|
|
|
return resolution; |
|
|
|
return resolution; |
|
|
|
} |
|
|
|
} |
|
|
|
double time = (columnExtent / columnLength) < (rowExtent / rowLength) ? (columnExtent / columnLength) : (rowExtent / rowLength); |
|
|
|
double time = (columnExtent / columnLength) < (rowExtent / rowLength) ? (columnExtent / columnLength) : (rowExtent / rowLength); |
|
|
|