Skip to content

Commit

Permalink
Fix strings
Browse files Browse the repository at this point in the history
  • Loading branch information
D. V. Wiebe committed Jun 3, 2015
1 parent 6a1e179 commit 79386f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions src/plugins/filters/window/filterwindow.cpp
Expand Up @@ -86,12 +86,6 @@ class ConfigWidgetFilterWindowPlugin : public Kst::DataObjectConfigWidget, publi

bool validTag = true;

// QStringRef av;
// av = attrs.value("value");
// if (!av.isNull()) {
// _configValue = QVariant(av.toString()).toBool();
// }

return validTag;
}

Expand Down Expand Up @@ -194,7 +188,7 @@ bool FilterWindowSource::algorithm() {
qSwap(max, min);
}

if ( (N < 1) || (max==min) ) {
if ( (N < 1) ) {
return false;
}

Expand All @@ -203,7 +197,7 @@ bool FilterWindowSource::algorithm() {

for (i=0; i<N; ++i) {
x = inputVector->value(i);
if ((x>max) || (x<min)) { // out of range: Nanify
if ((x>max) || (x<min)) { // out of range: Nannify
outputVector->value()[i] = NAN;
} else {
outputVector->value()[i] = x;
Expand Down Expand Up @@ -273,7 +267,7 @@ void FilterWindowSource::saveProperties(QXmlStreamWriter &s) {

// Name used to identify the plugin. Used when loading the plugin.
QString FilterWindowPlugin::pluginName() const { return tr("Window Filter"); }
QString FilterWindowPlugin::pluginDescription() const { return tr("Windows data that have wrapped."); }
QString FilterWindowPlugin::pluginDescription() const { return tr("Suppresses data outside of a given range."); }


Kst::DataObject *FilterWindowPlugin::create(Kst::ObjectStore *store, Kst::DataObjectConfigWidget *configWidget, bool setupInputsOutputs) const {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/filters/window/kstplugin_filter_window.desktop
Expand Up @@ -5,4 +5,4 @@ X-KDE-ModuleType=Plugin
X-KDE-Library=filterwindow
X-Kst-Plugin-Author=C. Barth Netterfield
Name=Filter - Window Plugin
Comment=It's a filter.
Comment=Implements a Windowing Filter Plugin for Kst.

0 comments on commit 79386f3

Please sign in to comment.