Page MenuHomePhabricator

Statistics Plugin: "Copy to Clipboard" copies values in mixed german/english numbering style
Closed, ResolvedPublic


  • Load image, run statistics plugin
  • press "copy to clipboard" and paste into some text editor

In the plugin the numbers are shown in american numbering style (decimal place is '.', )

In the texteditor you will find the german numbering style (decimal place is ',')

Event Timeline

This bug was not fixed within in the release 2013.12 but should be fixed within the next release

User maerz has pushed new remote branch:


User wildes has pushed new remote branch:


Two remarks:

  1. Please only merge bug-16616-CopyClipboardPointComma
  1. Restore the previous locale at the end of QmitkImageStatisticsView::OnClipboardStatisticsButtonClicked() by saving the current default locale in a temporary variable (a default constructed QLocale object represents the current default locale) and using this variable in a second call to QLocale::setDefault() at the end of the method.

[381437]: Merge branch 'bug-16616-CopyClipboardPointComma'

Merged commits:

2014-03-26 14:26:16 Esther Wild [c92d71]
restore default settings of qlocal

2014-03-12 15:59:07 Esther Wild [85ca0a]
Set QLocal to English, because otherwise the local computer settings will be used (on a German Computer, there will be a commata instead of a point for decimals).

Wrong line endings changed the whole file, only new contribution is in line 224:

QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates));