Added constructors to STheme* for copying.

This commit is contained in:
Florian Küpper committed 2014-09-10 11:17:36 +02:00
1 parent cea276090d
commit 9cca49745a
13 files changed
+246 -25

No files matched your search

+9 -1
View File
@@ -35,6 +35,14 @@ namespace VocaluxeLib.Menu
public SThemeColor Color;
[XmlElement("SColor")]
public SThemeColor SColor;
public SThemeLyrics(SThemeLyrics theme)
{
Name = theme.Name;
Rect = new SRectF(theme.Rect);
Color = new SThemeColor(theme.Color);
SColor = new SThemeColor(theme.SColor);
}
}
public class CLyric : IMenuElement
@@ -499,7 +507,7 @@ namespace VocaluxeLib.Menu
public SThemeLyrics GetTheme()
{
return _Theme;
return new SThemeLyrics(_Theme);
}
#region ThemeEdit