View Issue Details

IDProjectCategoryView StatusLast Update
0004410ardourotherpublic2020-04-19 20:15
Reporterroyvegard Assigned Tocth103  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Target Version3.0-beta1 
Summary0004410: [PATCH] Buttons with led on the left have text shifted too far to the right
DescriptionThis patch moves the text to the left for buttons with a led on the left side.
TagsNo tags attached.

Activities

2011-10-30 16:29

 

button_text.patch (541 bytes)   
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc
index ef537d1..74318f2 100644
--- a/gtk2_ardour/ardour_button.cc
+++ b/gtk2_ardour/ardour_button.cc
@@ -147,7 +147,7 @@ ArdourButton::render (cairo_t* cr)
 
 		if (_elements & Indicator) {
 			if (_led_left) {
-				cairo_move_to (cr, _width - text_margin - 4, _height/2.0 - _text_height/2.0);
+				cairo_move_to (cr, _diameter + text_margin + 4, _height/2.0 - _text_height/2.0);
 			} else {
 				cairo_move_to (cr, text_margin, _height/2.0 - _text_height/2.0);
 			}
button_text.patch (541 bytes)   

colinf

2011-10-31 11:57

updater   ~0011835

The patch works for me.

cth103

2011-10-31 21:53

administrator   ~0011841

I believe this has been fixed in the last few SVN revisions. Please re-open the bug if you are still having problems. Thanks!

system

2020-04-19 20:15

developer   ~0022798

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2011-10-30 16:29 royvegard New Issue
2011-10-30 16:29 royvegard File Added: button_text.patch
2011-10-30 17:31 cth103 cost => 0.00
2011-10-30 17:31 cth103 Target Version => 3.0-beta1
2011-10-31 11:57 colinf Note Added: 0011835
2011-10-31 21:53 cth103 Note Added: 0011841
2011-10-31 21:53 cth103 Status new => resolved
2011-10-31 21:53 cth103 Resolution open => fixed
2011-10-31 21:53 cth103 Assigned To => cth103
2020-04-19 20:15 system Note Added: 0022798
2020-04-19 20:15 system Status resolved => closed