개정판 b35682c3
issue #0007 angle 문제 수정( Key event가 이상함)
Change-Id: I7af7ff329c12375823c4111233f091ad6a7dcdaa
KCOM/ViewModel/RequirementViewModel.cs | ||
---|---|---|
355 | 355 |
|
356 | 356 |
|
357 | 357 |
var center = new Vector(Common.ViewerDataModel.Instance.ImageViewWidth / 2, Common.ViewerDataModel.Instance.ImageViewHeight / 2); |
358 |
var matrix = MatrixHelper.Rotation(Common.ViewerDataModel.Instance.Angle, center); |
|
358 |
var matrix = MatrixHelper.Rotation(Common.ViewerDataModel.Instance.PageAngle, center);
|
|
359 | 359 |
rect.Transform(matrix); |
360 | 360 |
|
361 | 361 |
double scaleX = Common.ViewerDataModel.Instance.ImageViewWidth / rect.Width; |
... | ... | |
364 | 364 |
double positionX = 0; |
365 | 365 |
double positionY = 0; |
366 | 366 |
|
367 |
if (Common.ViewerDataModel.Instance.Angle == 90) |
|
367 |
if (Common.ViewerDataModel.Instance.PageAngle == 90)
|
|
368 | 368 |
{ |
369 | 369 |
positionX = Common.ViewerDataModel.Instance.ImageViewHeight - rect.X; |
370 | 370 |
positionY = Common.ViewerDataModel.Instance.ImageViewWidth - rect.Y; |
내보내기 Unified diff