Skip to content

Commit 32451d8

Browse files
committed
Closes #1657
1 parent 4ebe4fa commit 32451d8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Interface/Modules/Render/ViewScene.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,7 @@ void ViewSceneDialog::invertZoomClicked(bool value)
778778
//--------------Clipping Plane Tools--------------------------------------------
779779
void ViewSceneDialog::setClippingPlaneIndex(int index)
780780
{
781-
int indexOffset = 7;
782-
clippingPlaneIndex_ = index + indexOffset;
781+
clippingPlaneIndex_ = index;
783782
auto spire = mSpire.lock();
784783
if (spire)
785784
spire->setClippingPlaneIndex(clippingPlaneIndex_);

src/Interface/Modules/Render/ViewSceneControlsDock.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ ViewSceneControlsDock::ViewSceneControlsDock(const QString& name, ViewSceneDialo
8282
connect(textOffsetHorizontalSlider_, SIGNAL(valueChanged(int)), parent, SLOT(setTextOffset(int)));
8383
connect(fieldOfViewHorizontalSlider_, SIGNAL(valueChanged(int)), parent, SLOT(setFieldOfView(int)));
8484
//-----------Clipping Tab-----------------//
85+
planeButtonGroup_->setId(plane1RadioButton_, 0);
86+
planeButtonGroup_->setId(plane2RadioButton_, 1);
87+
planeButtonGroup_->setId(plane3RadioButton_, 2);
88+
planeButtonGroup_->setId(plane4RadioButton_, 3);
89+
planeButtonGroup_->setId(plane5RadioButton_, 4);
90+
planeButtonGroup_->setId(plane6RadioButton_, 5);
8591
connect(planeButtonGroup_, SIGNAL(buttonPressed(int)), parent, SLOT(setClippingPlaneIndex(int)));
8692
connect(planeVisibleCheckBox_, SIGNAL(clicked(bool)), parent, SLOT(setClippingPlaneVisible(bool)));
8793
connect(showPlaneFrameCheckBox_, SIGNAL(clicked(bool)), parent, SLOT(setClippingPlaneFrameOn(bool)));

0 commit comments

Comments
 (0)