Skip to content

Commit e1823a1

Browse files
committed
Fix regression test problem with ShowString re-execute
1 parent 2dd8456 commit e1823a1

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/Modules/Visualization/ShowString.cc

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -77,29 +77,6 @@ void ShowString::setStateDefaults()
7777
state->setValue(Parameters::FixedVertical, std::string("Top"));
7878
state->setValue(Parameters::CoordinateHorizontal, 0.5);
7979
state->setValue(Parameters::CoordinateVertical, 0.5);
80-
81-
getOutputPort(RenderedString)->connectConnectionFeedbackListener([this](const ModuleFeedback& var) { processWindowResizeFeedback(var); });
82-
}
83-
84-
void ShowString::processWindowResizeFeedback(const ModuleFeedback& var)
85-
{
86-
if (!executedOnce_)
87-
return;
88-
89-
try
90-
{
91-
auto vsf = dynamic_cast<const ViewSceneFeedback&>(var);
92-
if (lastWindowSize_ != vsf.windowSize)
93-
{
94-
lastWindowSize_ = vsf.windowSize;
95-
needReexecute_ = true;
96-
enqueueExecuteAgain(false);
97-
}
98-
}
99-
catch (std::bad_cast&)
100-
{
101-
//ignore
102-
}
10380
}
10481

10582
void ShowString::execute()

src/Modules/Visualization/ShowString.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ namespace Visualization {
7272
private:
7373
Core::Datatypes::GeometryBaseHandle buildGeometryObject(const std::string& text);
7474
std::tuple<double, double> getTextPosition();
75-
void processWindowResizeFeedback(const Core::Datatypes::ModuleFeedback& var);
7675
static bool containsDescenderLetter(const std::string& text);
7776
boost::shared_ptr<class TextBuilder> textBuilder_;
7877
std::tuple<int,int> lastWindowSize_ { 450, 1000 };

0 commit comments

Comments
 (0)