Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7987


Ignore:
Timestamp:
06/12/12 08:50:43 (12 years ago)
Author:
abeham
Message:

#1870: fixed clipboard pasting in StringConvertibleMatrixView

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

    r7984 r7987  
    381381    }
    382382    private string[,] SplitClipboardString(string clipboardText) {
    383       clipboardText = clipboardText.Remove(clipboardText.Length - Environment.NewLine.Length);  //remove last newline constant
     383      if (clipboardText.EndsWith(Environment.NewLine))
     384        clipboardText = clipboardText.Remove(clipboardText.Length - Environment.NewLine.Length);  //remove last newline constant
    384385      string[,] values = null;
    385386      string[] lines = clipboardText.Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
Note: See TracChangeset for help on using the changeset viewer.