Merge r4105 from trunk.

Originally committed to SVN as r4106.
This commit is contained in:
Thomas Goyne 2010-02-14 22:46:46 +00:00
parent 718a51849f
commit ebfa2d7950
1 changed files with 2 additions and 0 deletions

View File

@ -618,6 +618,7 @@ void DialogStyleManager::OnCopyToCurrent (wxCommandEvent &event) {
void DialogStyleManager::OnStorageCopy (wxCommandEvent &event) {
wxArrayInt selections;
StorageList->GetSelections(selections);
if (selections.size() == 0) return;
AssStyle *temp = new AssStyle(*(styleStorageMap.at(selections[0])));
wxString newName = _("Copy of ");
@ -642,6 +643,7 @@ void DialogStyleManager::OnStorageCopy (wxCommandEvent &event) {
void DialogStyleManager::OnCurrentCopy (wxCommandEvent &event) {
wxArrayInt selections;
CurrentList->GetSelections(selections);
if (selections.size() == 0) return;
AssStyle *temp = new AssStyle(styleMap.at(selections[0])->GetEntryData());
wxString newName = _("Copy of ");