개정판 025ebf74
issue #923: fixed a problem text control doesn't rotate
Change-Id: I0a45f13948b9aa2966639ec47c48d685afd11c09
KCOM/Events/PasteCommand.cs | ||
---|---|---|
109 | 109 |
} |
110 | 110 |
Controls.AdornerFinal final = new Controls.AdornerFinal(adornerSet); |
111 | 111 |
|
112 |
double realPointX = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2);
|
|
113 |
double realPointY = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2);
|
|
114 |
final.TranslateItems(realPointX, realPointY);
|
|
115 |
|
|
116 |
if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null) |
|
117 |
{ |
|
118 |
final.TranslateItems(0.001, 0.001); //dummy |
|
119 |
} |
|
112 |
/// place controls at current mouse position
|
|
113 |
var diff = Point.Subtract(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint, final.Centeroid);
|
|
114 |
final.TranslateItems(diff.X, diff.Y);
|
|
115 |
|
|
116 |
//if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
|
|
117 |
//{
|
|
118 |
// final.TranslateItems(0.001, 0.001); //dummy
|
|
119 |
//}
|
|
120 | 120 |
|
121 | 121 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(final); |
122 | 122 |
} |
내보내기 Unified diff