Skip to content

Commit

Permalink
Make version information selectable and copyable in the About dialog.…
Browse files Browse the repository at this point in the history
… (2) refs #2413
  • Loading branch information
sdottaka committed Aug 27, 2024
1 parent 42ac97b commit 235c280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/Merge.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ BEGIN
LTEXT "[VERSION COPYRIGHT GOES HERE]",IDC_COMPANY,7,174,350,42
DEFPUSHBUTTON "OK",IDOK,295,220,65,14
PUSHBUTTON "Contributors",IDC_OPEN_CONTRIBUTORS,7,220,65,14
EDITTEXT IDC_VERSION,237,155,120,20,ES_MULTILINE | ES_READONLY | NOT WS_BORDER
EDITTEXT IDC_VERSION,237,155,140,20,ES_MULTILINE | ES_READONLY | NOT WS_BORDER
END

IDD_OPEN DIALOGEX 0, 0, 465, 266
Expand Down
4 changes: 2 additions & 2 deletions Src/MergeApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ AboutInfo::AboutInfo()

if (version.find(_T(" - ")) != String::npos)
{
strutils::replace(version, _T(" - "), _T("\n"));
strutils::replace(version, _T(" - "), _T("\r\n"));
version += _T(" ");
}
else
{
version += _T("\n");
version += _T("\r\n");
}

#if defined _M_IX86
Expand Down

0 comments on commit 235c280

Please sign in to comment.