|
@@ -128,6 +128,7 @@ begin
|
|
ComboBox_BrushSelect.OnDrawItem := @ComboBox_BrushSelectDrawItem;
|
|
ComboBox_BrushSelect.OnDrawItem := @ComboBox_BrushSelectDrawItem;
|
|
ComboBox_BrushSelect.OnDrawSelectedItem:= @ComboBox_BrushSelectDrawSelectedItem;
|
|
ComboBox_BrushSelect.OnDrawSelectedItem:= @ComboBox_BrushSelectDrawSelectedItem;
|
|
ComboBox_BrushSelect.CanvasScaleMode:= csmFullResolution;
|
|
ComboBox_BrushSelect.CanvasScaleMode:= csmFullResolution;
|
|
|
|
+ Combo_Ratio.Items.Add(rsImage);
|
|
Combo_Ratio.OnChange := @Combo_RatioChange;
|
|
Combo_Ratio.OnChange := @Combo_RatioChange;
|
|
|
|
|
|
Panel_LineCap_FullSize := Panel_LineCap.Width;
|
|
Panel_LineCap_FullSize := Panel_LineCap.Width;
|
|
@@ -2042,7 +2043,10 @@ var
|
|
begin
|
|
begin
|
|
if initialized then
|
|
if initialized then
|
|
begin
|
|
begin
|
|
- newRatio := ComputeRatio(Combo_Ratio.Text);
|
|
|
|
|
|
+ if CompareText(Combo_Ratio.Text, rsImage)=0 then
|
|
|
|
+ newRatio := Image.Width/Image.Height
|
|
|
|
+ else
|
|
|
|
+ newRatio := ComputeRatio(Combo_Ratio.Text);
|
|
if newRatio <> ToolManager.ShapeRatio then
|
|
if newRatio <> ToolManager.ShapeRatio then
|
|
begin
|
|
begin
|
|
FInShapeRatio := true;
|
|
FInShapeRatio := true;
|