From: Kimura Youichi Date: Sat, 11 Nov 2017 20:22:01 +0000 (+0900) Subject: UserInfoDialogでのプロフィール編集時にTextBox.MaxLengthによる文字長チェックを行わない X-Git-Tag: OpenTween_v1.4.1~3 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a8f3913d;p=opentween%2Fopen-tween.git UserInfoDialogでのプロフィール編集時にTextBox.MaxLengthによる文字長チェックを行わない 名前に 50 文字のテキストが利用可能になったことと、TextBox.MaxLength がサロゲートペアを 適切にカウントできない問題が存在するため TextBox.MaxLength の設定を削除する --- diff --git a/OpenTween/Resources/ChangeLog.txt b/OpenTween/Resources/ChangeLog.txt index d7f7d795..19256066 100644 --- a/OpenTween/Resources/ChangeLog.txt +++ b/OpenTween/Resources/ChangeLog.txt @@ -4,6 +4,7 @@ * NEW: ツイート文字数の280文字への上限緩和に対応しました - Twitter公式クライアントなどと同様に、入力する文字種によって文字数の扱いが異なるものになります - DMの送信時に行われる文字数のカウントは従来通りのままです + * NEW: プロフィール編集時に名前欄に50文字のテキストが入力可能になりました * CHG: 画像投稿の対応サービスから「img.ly」「yfrog」「ついっぷるフォト」を削除 - アップデート前にこれらのサービスを投稿先に選択していた場合は「Twitter」に変更されます * CHG: 画像投稿のキャンセル時に選択中の画像表示を閉じないように動作を変更 diff --git a/OpenTween/UserInfoDialog.cs b/OpenTween/UserInfoDialog.cs index 5ca03425..c2ee6dc5 100644 --- a/OpenTween/UserInfoDialog.cs +++ b/OpenTween/UserInfoDialog.cs @@ -309,25 +309,21 @@ namespace OpenTween this.TextBoxName.Height = this.LabelName.Height; this.TextBoxName.Width = this.LabelName.Width; this.TextBoxName.BackColor = this.mainForm.InputBackColor; - this.TextBoxName.MaxLength = 20; this.TextBoxLocation.Location = this.LabelLocation.Location; this.TextBoxLocation.Height = this.LabelLocation.Height; this.TextBoxLocation.Width = this.LabelLocation.Width; this.TextBoxLocation.BackColor = this.mainForm.InputBackColor; - this.TextBoxLocation.MaxLength = 30; this.TextBoxWeb.Location = this.LinkLabelWeb.Location; this.TextBoxWeb.Height = this.LinkLabelWeb.Height; this.TextBoxWeb.Width = this.LinkLabelWeb.Width; this.TextBoxWeb.BackColor = this.mainForm.InputBackColor; - this.TextBoxWeb.MaxLength = 100; this.TextBoxDescription.Location = this.DescriptionBrowser.Location; this.TextBoxDescription.Height = this.DescriptionBrowser.Height; this.TextBoxDescription.Width = this.DescriptionBrowser.Width; this.TextBoxDescription.BackColor = this.mainForm.InputBackColor; - this.TextBoxDescription.MaxLength = 160; this.TextBoxDescription.Multiline = true; this.TextBoxDescription.ScrollBars = ScrollBars.Vertical; }