Skip to content

Commit

Permalink
fix wrapping Image with text box
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Oct 3, 2024
1 parent a797e11 commit 6628a0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OneMore/Commands/Tables/Formulas/Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ private List<TagDef> DiscoverTags()

private void Report(TableCell cell, Formula formula, double result)
{
int dplaces = formula.Version >= 2 ? formula.DecimalPlaces : maxdec;
var dplaces = formula.Version >= 2 ? formula.DecimalPlaces : maxdec;

string text = string.Empty;
var text = string.Empty;
switch (formula.Format)
{
case FormulaFormat.Currency:
Expand Down
6 changes: 6 additions & 0 deletions OneMore/Models/PageEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ public void FollowWithCurosr(XElement root)
}
else
{
// selected item might be Image, so move up to Parent
if (last.Parent.Name.LocalName == "OE")
{
last = last.Parent;
}

last.AddAfterSelf(new XElement(ns + "OE",
new XElement(ns + "T",
new XAttribute("selected", "all"),
Expand Down

0 comments on commit 6628a0a

Please sign in to comment.