trackeditor: set height when known
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9261 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 2df171fc51b4f7d18376c823f24654c0f8e1c746 Former-commit-id: 1e5e23e77d6718a480ecd8762136b82f129599cf
This commit is contained in:
parent
7ec70d2bb5
commit
96fa5c5104
2 changed files with 21 additions and 5 deletions
|
@ -959,11 +959,19 @@ public class SegmentEditorDlg extends JDialog implements SliderListener
|
|||
{
|
||||
if (slider.isCheckBoxSelected())
|
||||
{
|
||||
if (!Double.isNaN(heightStartLeftSlider.getValue()))
|
||||
double startLeft = heightStartLeftSlider.getValue();
|
||||
double startRight = heightStartRightSlider.getValue();
|
||||
|
||||
if (!Double.isNaN(startLeft) &&!Double.isNaN(startRight) && startLeft == startRight)
|
||||
{
|
||||
heightStartSlider.setValue(startLeft);
|
||||
}
|
||||
|
||||
if (!Double.isNaN(startLeft))
|
||||
{
|
||||
heightStartLeftSlider.setValue(Double.NaN);
|
||||
}
|
||||
if (!Double.isNaN(heightStartRightSlider.getValue()))
|
||||
if (!Double.isNaN(startRight))
|
||||
{
|
||||
heightStartRightSlider.setValue(Double.NaN);
|
||||
}
|
||||
|
@ -995,11 +1003,19 @@ public class SegmentEditorDlg extends JDialog implements SliderListener
|
|||
{
|
||||
if (slider.isCheckBoxSelected())
|
||||
{
|
||||
if (!Double.isNaN(heightEndLeftSlider.getValue()))
|
||||
double endLeft = heightEndLeftSlider.getValue();
|
||||
double endRight = heightEndRightSlider.getValue();
|
||||
|
||||
if (!Double.isNaN(endLeft) &&!Double.isNaN(endRight) && endLeft == endRight)
|
||||
{
|
||||
heightEndSlider.setValue(endLeft);
|
||||
}
|
||||
|
||||
if (!Double.isNaN(endLeft))
|
||||
{
|
||||
heightEndLeftSlider.setValue(Double.NaN);
|
||||
}
|
||||
if (!Double.isNaN(heightEndRightSlider.getValue()))
|
||||
if (!Double.isNaN(endRight))
|
||||
{
|
||||
heightEndRightSlider.setValue(Double.NaN);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public class Properties
|
|||
private static Properties instance = new Properties();
|
||||
private Vector<ActionListener> propertiesListeners = new Vector<ActionListener>();
|
||||
public final String title = "sd2-trackeditor";
|
||||
public final String version = "1.4.7";
|
||||
public final String version = "1.4.8";
|
||||
private String path;
|
||||
|
||||
private double imageScale = 1;
|
||||
|
|
Loading…
Reference in a new issue