Skip to content

Commit

Permalink
#6332: Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jan 19, 2024
1 parent c302dbf commit 530f7b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radiant/ui/overlay/OrthoBackgroundPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ void OrthoBackgroundPanel::setupDialog()
_slider.scale->Connect(
wxEVT_SLIDER, wxScrollEventHandler(OrthoBackgroundPanel::onScrollChange), NULL, this
);
_spinScale = makeSpinner(_controlsPanel, 0, 20, 0.01);
_spinScale = makeSpinner(_controlsPanel, 0, 20, 0.01f);
addSliderRow(_controlsPanel, *cpanelSizer, "<b>Scale</b>", _slider.scale, _spinScale);

// Horizontal Offset slider and spinner
_slider.hOffset = new wxSlider(_controlsPanel, wxID_ANY, 0, -2000, 2000);
_slider.hOffset->Connect(
wxEVT_SLIDER, wxScrollEventHandler(OrthoBackgroundPanel::onScrollChange), NULL, this
);
_spinHorizOffset = makeSpinner(_controlsPanel, -20, 20, 0.01);
_spinHorizOffset = makeSpinner(_controlsPanel, -20, 20, 0.01f);
addSliderRow(
_controlsPanel, *cpanelSizer, "<b>Horz. offset</b>", _slider.hOffset, _spinHorizOffset
);
Expand All @@ -118,7 +118,7 @@ void OrthoBackgroundPanel::setupDialog()
_slider.vOffset->Connect(
wxEVT_SLIDER, wxScrollEventHandler(OrthoBackgroundPanel::onScrollChange), NULL, this
);
_spinVertOffset = makeSpinner(_controlsPanel, -20, 20, 0.01);
_spinVertOffset = makeSpinner(_controlsPanel, -20, 20, 0.01f);
addSliderRow(
_controlsPanel, *cpanelSizer, "<b>Vert. offset</b>", _slider.vOffset, _spinVertOffset
);
Expand Down

0 comments on commit 530f7b1

Please sign in to comment.