diff options
Diffstat (limited to 'src/LineMarker.cxx')
| -rw-r--r-- | src/LineMarker.cxx | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/src/LineMarker.cxx b/src/LineMarker.cxx index ed9c1ce7a..a3ab16b1d 100644 --- a/src/LineMarker.cxx +++ b/src/LineMarker.cxx @@ -37,6 +37,7 @@ LineMarker::LineMarker(const LineMarker &other) {  	back = other.back;  	backSelected = other.backSelected;  	strokeWidth = other.strokeWidth; +	layer = other.layer;  	alpha = other.alpha;  	if (other.pxpm)  		pxpm = std::make_unique<XPM>(*other.pxpm); @@ -57,6 +58,7 @@ LineMarker &LineMarker::operator=(const LineMarker &other) {  		back = other.back;  		backSelected = other.backSelected;  		strokeWidth = other.strokeWidth; +		layer = other.layer;  		alpha = other.alpha;  		if (other.pxpm)  			pxpm = std::make_unique<XPM>(*other.pxpm); @@ -71,6 +73,10 @@ LineMarker &LineMarker::operator=(const LineMarker &other) {  	return *this;  } +ColourAlpha LineMarker::BackWithAlpha() const noexcept { +	return ColourAlpha(back, alpha); +} +  void LineMarker::SetXPM(const char *textForm) {  	pxpm = std::make_unique<XPM>(textForm);  	markType = SC_MARK_PIXMAP;  | 
