mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Fix for copy/paste of Speech-Bubble, the target "gripper" (green dot) was missing.
This commit is contained in:
parent
e2da1e8bb4
commit
91a75c7c18
1 changed files with 11 additions and 0 deletions
|
@ -638,6 +638,11 @@ namespace Greenshot.Drawing {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void SwitchParent(Surface newParent) {
|
protected virtual void SwitchParent(Surface newParent) {
|
||||||
|
// Target gripper
|
||||||
|
if (_parent != null && _targetGripper != null) {
|
||||||
|
_parent.Controls.Remove(_targetGripper);
|
||||||
|
}
|
||||||
|
// Normal grippers
|
||||||
if (_parent != null && _grippers != null) {
|
if (_parent != null && _grippers != null) {
|
||||||
for (int i=0; i<_grippers.Length; i++) {
|
for (int i=0; i<_grippers.Length; i++) {
|
||||||
_parent.Controls.Remove(_grippers[i]);
|
_parent.Controls.Remove(_grippers[i]);
|
||||||
|
@ -646,9 +651,15 @@ namespace Greenshot.Drawing {
|
||||||
InitControls();
|
InitControls();
|
||||||
}
|
}
|
||||||
_parent = newParent;
|
_parent = newParent;
|
||||||
|
// Target gripper
|
||||||
|
if (_parent != null && _targetGripper != null) {
|
||||||
|
_parent.Controls.Add(_targetGripper);
|
||||||
|
}
|
||||||
|
// Normal grippers
|
||||||
if (_grippers != null) {
|
if (_grippers != null) {
|
||||||
_parent.Controls.AddRange(_grippers);
|
_parent.Controls.AddRange(_grippers);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(IFilter filter in Filters) {
|
foreach(IFilter filter in Filters) {
|
||||||
filter.Parent = this;
|
filter.Parent = this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue