-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inadmissible value or data type. #8
Comments
Thanks Gnossos for the report.
No time for investigating this in the short-term... |
Chiming in, I get the same error on the dim visibility line here:
My presentation is and always has been in the LibreOffice ODP format. I can provide the deck on request if you provide me with an email address to send it to. |
Same error as phrack. The plugin worked on a previous version of the same document that had less animations. |
In my case, the error was triggered by a transparency animation. Removing it fixed the issue. |
Are you sure you have only "Appear" or "Disappear" animations (the only ones supported by ExpandAnimations)? |
It would be great to raise a popup when an incompatible animation is |
Hi all, I have no idea about LibreOffice Basic, but I managed to ignore the slides for which that error appears, below the diff. Feel free to modify/merge. diff --git a/src/ExpandAnimations.bas b/src/ExpandAnimations.bas
index 05a0551..30c4452 100644
--- a/src/ExpandAnimations.bas
+++ b/src/ExpandAnimations.bas
@@ -135,7 +135,7 @@ function expandDocument(doc as Object)
slide = doc.drawPages(i)
if hasAnimation(slide) then
n = countAnimationSteps(slide)
- if n > 1 then
+ if n > 1 and not somethingWrong(slide) then
origName = slide.Name
replicateSlide(doc, slide, n)
visArray = getShapeVisibility(slide, n)
@@ -199,12 +199,21 @@ function getAnimatedShapes(slide as Object)
getAnimatedShapes = shapes
end function
+function somethingWrong( slide as Object )
+ shapes = getAnimatedShapes(slide)
+ if UBound(shapes) = -1 then
+ somethingWrong = true
+ else
+ somethingWrong = false
+ end if
+end function |
Dear Carlos, Thanks for your contribution, it looks good. Would you create a pull --Martin On 12/04/2014 11:13 AM, Carlos Becker wrote:
|
@monperrus The pull request is up. Thanks for creating this neat add-on! |
Workaround for issue #8 "Inadmissible value or data type"
Hi It is 2019 and I ran into the same problem this evening. I tried the fix and it worked. I do not know how to properly request it but the fix should be put into the codebase (if it is not already there). Thanks . . . Phil Troy |
This is in the code, see #12 and should be in the latest package. |
In LibreOffice Impress (4.1.3.2)I import a file from Powerpoint 2011 (14.3.8) in pptx format. Then, after doing some cosmetic work, I try to export it with ExpandAnimations: Tools > Add-.Ons > Expand animations. The plugin crashes with this message: "Inadmissible value or data type. Index out of defined range."
The text was updated successfully, but these errors were encountered: